Language

TvInputService.OnCreateSession Method

Definition

Overloads

Name Description
OnCreateSession(String, String)

Returns a concrete implementation of Session.

OnCreateSession(String, String, AttributionSource)

Returns a concrete implementation of Session.

OnCreateSession(String)

Returns a concrete implementation of Session.

OnCreateSession(String, String)

Returns a concrete implementation of Session.

[Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;Ljava/lang/String;)Landroid/media/tv/TvInputService$Session;", "GetOnCreateSession_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=30)]
public virtual Android.Media.TV.TvInputService.Session? OnCreateSession(string inputId, string sessionId);
[<Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;Ljava/lang/String;)Landroid/media/tv/TvInputService$Session;", "GetOnCreateSession_Ljava_lang_String_Ljava_lang_String_Handler", ApiSince=30)>]
abstract member OnCreateSession : string * string -> Android.Media.TV.TvInputService.Session
override this.OnCreateSession : string * string -> Android.Media.TV.TvInputService.Session

Parameters

inputId
String

The ID of the TV input associated with the session.

sessionId
String

the unique sessionId created by TIF when session is created. This value cannot be null.

Returns

Attributes

Remarks

Returns a concrete implementation of Session.

For any apps that needs sessionId to request tuner resources from TunerResourceManager, it needs to override this method to get the sessionId passed. When no overriding, this method calls onCreateSession(String) defaultly.

Android reference for android.media.tv.TvInputService.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

OnCreateSession(String, String, AttributionSource)

Returns a concrete implementation of Session.

[Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;Ljava/lang/String;Landroid/content/AttributionSource;)Landroid/media/tv/TvInputService$Session;", "GetOnCreateSession_Ljava_lang_String_Ljava_lang_String_Landroid_content_AttributionSource_Handler", ApiSince=34)]
public virtual Android.Media.TV.TvInputService.Session? OnCreateSession(string inputId, string sessionId, Android.Content.AttributionSource tvAppAttributionSource);
[<Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;Ljava/lang/String;Landroid/content/AttributionSource;)Landroid/media/tv/TvInputService$Session;", "GetOnCreateSession_Ljava_lang_String_Ljava_lang_String_Landroid_content_AttributionSource_Handler", ApiSince=34)>]
abstract member OnCreateSession : string * string * Android.Content.AttributionSource -> Android.Media.TV.TvInputService.Session
override this.OnCreateSession : string * string * Android.Content.AttributionSource -> Android.Media.TV.TvInputService.Session

Parameters

inputId
String

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

sessionId
String

the unique sessionId created by TIF when session is created. This value cannot be null.

tvAppAttributionSource
AttributionSource

The Attribution Source of the TV App. This value cannot be null.

Returns

Attributes

Remarks

Returns a concrete implementation of Session.

Android reference for android.media.tv.TvInputService.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

OnCreateSession(String)

Returns a concrete implementation of Session.

[Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;)Landroid/media/tv/TvInputService$Session;", "GetOnCreateSession_Ljava_lang_String_Handler")]
public abstract Android.Media.TV.TvInputService.Session? OnCreateSession(string inputId);
[<Android.Runtime.Register("onCreateSession", "(Ljava/lang/String;)Landroid/media/tv/TvInputService$Session;", "GetOnCreateSession_Ljava_lang_String_Handler")>]
abstract member OnCreateSession : string -> Android.Media.TV.TvInputService.Session

Parameters

inputId
String

The ID of the TV input associated with the session.

Returns

Attributes

Remarks

Java documentation for android.media.tv.TvInputService.onCreateSession(java.lang.String).

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