CloudMediaProvider.CloudMediaSurfaceController.OnSurfaceCreated 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.
Indicates creation of the given Surface
with given surfaceId
for
rendering the preview of a media item with given mediaId
.
[Android.Runtime.Register("onSurfaceCreated", "(ILandroid/view/Surface;Ljava/lang/String;)V", "GetOnSurfaceCreated_ILandroid_view_Surface_Ljava_lang_String_Handler", ApiSince=33)]
public abstract void OnSurfaceCreated (int surfaceId, Android.Views.Surface surface, string mediaId);
[<Android.Runtime.Register("onSurfaceCreated", "(ILandroid/view/Surface;Ljava/lang/String;)V", "GetOnSurfaceCreated_ILandroid_view_Surface_Ljava_lang_String_Handler", ApiSince=33)>]
abstract member OnSurfaceCreated : int * Android.Views.Surface * string -> unit
Parameters
- surfaceId
- Int32
id which uniquely identifies the Surface
for rendering
- surface
- Surface
instance of the Surface
on which the media item should be rendered
- mediaId
- String
id which uniquely identifies the media to be rendered
- Attributes
Remarks
Indicates creation of the given Surface
with given surfaceId
for rendering the preview of a media item with given mediaId
.
This is called immediately after the surface is first created. Implementations of this should start up whatever rendering code they desire.
Note that the given media item remains associated with the given surface id till the Surface
is destroyed.
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.