Code example for Parcel

Methods: readInt, readParcelable

0
	private BitmapDrawable surface;
	private LibFreeRDP.UIEventListener uiEventListener;
	 
	public SessionState(Parcel parcel)
	{ 
		instance = parcel.readInt();
		bookmark = parcel.readParcelable(null);
 
		Bitmap bitmap = parcel.readParcelable(null);
		surface = new BitmapDrawable(bitmap);
	} 
	 
	public SessionState(int instance, BookmarkBase bookmark)
	{ 
		this.instance = instance;
		this.bookmark = bookmark;
		this.uiEventListener = null;
	} 
	 
	public void connect() { 
		LibFreeRDP.setConnectionInfo(instance, bookmark);