Language

TvInteractiveAppService.OnCreateSession(String, Int32) Method

Definition

Returns a concrete implementation of Session.

[Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;I)Landroid/media/tv/interactive/TvInteractiveAppService$Session;", "GetOnCreateSession_Ljava_lang_String_IHandler", ApiSince=33)]
public abstract Android.Media.TV.Interactive.TvInteractiveAppService.Session? OnCreateSession(string iAppServiceId, int type);
[<Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;I)Landroid/media/tv/interactive/TvInteractiveAppService$Session;", "GetOnCreateSession_Ljava_lang_String_IHandler", ApiSince=33)>]
abstract member OnCreateSession : string * int -> Android.Media.TV.Interactive.TvInteractiveAppService.Session

Parameters

iAppServiceId
String

The ID of the TV Interactive App associated with the session. This value cannot be null.

type
Int32

The type of the TV Interactive App associated with the session. Value is one of the following: TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_HBBTV; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_ATSC; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_GINGA; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_TARGETED_AD; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_OTHER

Returns

The new session, or null if the service cannot create it.

Attributes

Remarks

Returns a concrete implementation of Session.

May return null if this TV Interactive App service fails to create a session for some reason.

Android reference for android.media.tv.interactive.TvInteractiveAppService.onCreateSession.

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