IEmbeddedPhotoPickerProvider.OpenSession Method

Definition

Open a new session for displaying content with an initial size of width x height pixels.

[Android.Runtime.Register("openSession", "(Landroid/os/IBinder;IIILandroid/widget/photopicker/EmbeddedPhotoPickerFeatureInfo;Ljava/util/concurrent/Executor;Landroid/widget/photopicker/EmbeddedPhotoPickerClient;)V", "GetOpenSession_Landroid_os_IBinder_IIILandroid_widget_photopicker_EmbeddedPhotoPickerFeatureInfo_Ljava_util_concurrent_Executor_Landroid_widget_photopicker_EmbeddedPhotoPickerClient_Handler:Android.Widget.PhotoPicker.IEmbeddedPhotoPickerProviderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)]
public void OpenSession(Android.OS.IBinder hostToken, int displayId, int width, int height, Android.Widget.PhotoPicker.EmbeddedPhotoPickerFeatureInfo featureInfo, Java.Util.Concurrent.IExecutor clientExecutor, Android.Widget.PhotoPicker.IEmbeddedPhotoPickerClient callback);
[<Android.Runtime.Register("openSession", "(Landroid/os/IBinder;IIILandroid/widget/photopicker/EmbeddedPhotoPickerFeatureInfo;Ljava/util/concurrent/Executor;Landroid/widget/photopicker/EmbeddedPhotoPickerClient;)V", "GetOpenSession_Landroid_os_IBinder_IIILandroid_widget_photopicker_EmbeddedPhotoPickerFeatureInfo_Ljava_util_concurrent_Executor_Landroid_widget_photopicker_EmbeddedPhotoPickerClient_Handler:Android.Widget.PhotoPicker.IEmbeddedPhotoPickerProviderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=36)>]
abstract member OpenSession : Android.OS.IBinder * int * int * int * Android.Widget.PhotoPicker.EmbeddedPhotoPickerFeatureInfo * Java.Util.Concurrent.IExecutor * Android.Widget.PhotoPicker.IEmbeddedPhotoPickerClient -> unit

Parameters

hostToken
IBinder

Token used for constructing android.view.SurfaceControlViewHost. Use AttachedSurfaceControl#getInputTransferToken() to get token of attached android.view.SurfaceControlViewHost.SurfacePackage.

displayId
Int32

Application display id. Use DisplayManager#getDisplays() to get the id.

width
Int32

width of the view, in pixels.

height
Int32

height of the view, in pixels.

featureInfo
EmbeddedPhotoPickerFeatureInfo

EmbeddedPhotoPickerFeatureInfo object containing all the required features for the given session.

clientExecutor
IExecutor

Executor to invoke callbacks.

callback
IEmbeddedPhotoPickerClient

EmbeddedPhotoPickerClient object to receive callbacks from photopicker.

Attributes

Remarks

Open a new session for displaying content with an initial size of width x height pixels. EmbeddedPhotoPickerClient will receive all incoming communication from the PhotoPicker. All incoming calls to EmbeddedPhotoPickerClient will be made through the provided clientExecutor

Java documentation for android.widget.photopicker.EmbeddedPhotoPickerProvider.openSession(android.os.IBinder, int, int, int, android.widget.photopicker.EmbeddedPhotoPickerFeatureInfo, java.util.concurrent.Executor, android.widget.photopicker.EmbeddedPhotoPickerClient).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to