IEmbeddedPhotoPickerSession Interface
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.
Class that holds the embedded photopicker view wrapped in
SurfaceControlViewHost.SurfacePackage
that can be embedded by the caller in their
view hierarchy by placing it in a SurfaceView
via its
SurfaceView#setChildSurfacePackage
api.
[Android.Runtime.Register("android/widget/photopicker/EmbeddedPhotoPickerSession", "", "Android.Widget.PhotoPicker.IEmbeddedPhotoPickerSessionInvoker", ApiSince=36)]
public interface IEmbeddedPhotoPickerSession : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/widget/photopicker/EmbeddedPhotoPickerSession", "", "Android.Widget.PhotoPicker.IEmbeddedPhotoPickerSessionInvoker", ApiSince=36)>]
type IEmbeddedPhotoPickerSession = interface
interface IJavaObject
interface IDisposable
interface IJavaPeerable
- Attributes
- Implements
Remarks
Class that holds the embedded photopicker view wrapped in SurfaceControlViewHost.SurfacePackage
that can be embedded by the caller in their view hierarchy by placing it in a SurfaceView
via its SurfaceView#setChildSurfacePackage
api.
Callers of EmbeddedPhotoPickerProvider#openSession
will asynchronously receive instance of this class from the service upon its successful execution via EmbeddedPhotoPickerClient#onSessionOpened
callback.
Instance of this class can be then used by callers to notify PhotoPicker about different events for service to act upon them.
When a session is no longer being used, it should be closed by callers to help system release the resources.
Java documentation for android.widget.photopicker.EmbeddedPhotoPickerSession
.
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.
Properties
Handle |
Gets the JNI value of the underlying Android object. (Inherited from IJavaObject) |
JniIdentityHashCode |
Returns the value of |
JniManagedPeerState |
State of the managed peer. (Inherited from IJavaPeerable) |
JniPeerMembers |
Member access and invocation support. (Inherited from IJavaPeerable) |
PeerReference |
Returns a JniObjectReference of the wrapped Java object instance. (Inherited from IJavaPeerable) |
SurfacePackage |
Methods
Close() |
Close the session, i. |
Disposed() |
Called when the instance has been disposed. (Inherited from IJavaPeerable) |
DisposeUnlessReferenced() |
If there are no outstanding references to this instance, then
calls |
Finalized() |
Called when the instance has been finalized. (Inherited from IJavaPeerable) |
NotifyConfigurationChanged(Configuration) |
Notifies photopicker that host side configuration has changed. |
NotifyPhotoPickerExpanded(Boolean) |
Notify that user switched photopicker between expanded/collapsed state. |
NotifyResized(Int32, Int32) |
Notify that caller's presentation area has changed and photopicker's dimensions should change accordingly. |
NotifyVisibilityChanged(Boolean) |
Notify that embedded photopicker view is visible or not to the user. |
RequestRevokeUriPermission(IList<Uri>) |
Notify that the user deselected some items. |
SetJniIdentityHashCode(Int32) |
Set the value returned by |
SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from IJavaPeerable) |
SetPeerReference(JniObjectReference) |
Set the value returned by |
UnregisterFromRuntime() |
Unregister this instance so that the runtime will not return it from future Java.Interop.JniRuntime+JniValueManager.PeekValue invocations. (Inherited from IJavaPeerable) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |
Gets the JNI name of the type of the instance |
JavaAs<TResult>(IJavaPeerable) |
Try to coerce |
TryJavaCast<TResult>(IJavaPeerable, TResult) |
Try to coerce |