CloudMediaProvider.OnCreateCloudMediaSurfaceController 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.
Returns a CloudMediaSurfaceController used for rendering the preview of media items, or null if preview rendering is not supported.
[Android.Runtime.Register("onCreateCloudMediaSurfaceController", "(Landroid/os/Bundle;Landroid/provider/CloudMediaProvider$CloudMediaSurfaceStateChangedCallback;)Landroid/provider/CloudMediaProvider$CloudMediaSurfaceController;", "GetOnCreateCloudMediaSurfaceController_Landroid_os_Bundle_Landroid_provider_CloudMediaProvider_CloudMediaSurfaceStateChangedCallback_Handler", ApiSince=33)]
public virtual Android.Provider.CloudMediaProvider.CloudMediaSurfaceController? OnCreateCloudMediaSurfaceController(Android.OS.Bundle config, Android.Provider.CloudMediaProvider.CloudMediaSurfaceStateChangedCallback callback);
[<Android.Runtime.Register("onCreateCloudMediaSurfaceController", "(Landroid/os/Bundle;Landroid/provider/CloudMediaProvider$CloudMediaSurfaceStateChangedCallback;)Landroid/provider/CloudMediaProvider$CloudMediaSurfaceController;", "GetOnCreateCloudMediaSurfaceController_Landroid_os_Bundle_Landroid_provider_CloudMediaProvider_CloudMediaSurfaceStateChangedCallback_Handler", ApiSince=33)>]
abstract member OnCreateCloudMediaSurfaceController : Android.OS.Bundle * Android.Provider.CloudMediaProvider.CloudMediaSurfaceStateChangedCallback -> Android.Provider.CloudMediaProvider.CloudMediaSurfaceController
override this.OnCreateCloudMediaSurfaceController : Android.OS.Bundle * Android.Provider.CloudMediaProvider.CloudMediaSurfaceStateChangedCallback -> Android.Provider.CloudMediaProvider.CloudMediaSurfaceController
Parameters
- config
- Bundle
containing configuration parameters for CloudMediaSurfaceController CloudMediaProviderContract.EXTRA_LOOPING_PLAYBACK_ENABLED CloudMediaProviderContract.EXTRA_SURFACE_CONTROLLER_AUDIO_MUTE_ENABLED. This value cannot be null.
CloudMediaSurfaceStateChangedCallback to send state updates for Surface to picker launched via MediaStore.ACTION_PICK_IMAGES This value cannot be null.
Returns
- Attributes
Remarks
Returns a CloudMediaSurfaceController used for rendering the preview of media items, or null if preview rendering is not supported.
Android reference for android.provider.CloudMediaProvider.onCreateCloudMediaSurfaceController.
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.