IEmbeddedPhotoPickerProvider.OpenSession Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.