Language

MediaCas Constructors

Definition

Overloads

Name Description
MediaCas(Int32)

Instantiate a CA system of the specified system id.

MediaCas(Context, Int32, String, Int32)

Instantiate a CA system of the specified system id.

MediaCas(Context, Int32, String, Int32, Handler, MediaCas+IEventListener)

Instantiate a CA system of the specified system id.

MediaCas(Int32)

Instantiate a CA system of the specified system id.

[Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=26)]
public MediaCas(int casSystemId);
[<Android.Runtime.Register(".ctor", "(I)V", "", ApiSince=26)>]
new Android.Media.MediaCas : int -> Android.Media.MediaCas

Parameters

casSystemId
Int32

The system id of the CA system.

Attributes

Remarks

Instantiate a CA system of the specified system id.

Java documentation for android.media.MediaCas.MediaCas(int).

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

MediaCas(Context, Int32, String, Int32)

Instantiate a CA system of the specified system id.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/lang/String;I)V", "", ApiSince=30)]
public MediaCas(Android.Content.Context context, int casSystemId, string? tvInputServiceSessionId, int priorityHint);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/lang/String;I)V", "", ApiSince=30)>]
new Android.Media.MediaCas : Android.Content.Context * int * string * int -> Android.Media.MediaCas

Parameters

context
Context

the context of the caller.

casSystemId
Int32

The system id of the CA system.

tvInputServiceSessionId
String

The Id of the session opened in TV Input Service (TIS) android.media.tv.TvInputService#onCreateSession(String, String)

priorityHint
Int32

priority hint from the use case type for new created CAS system.

Attributes

Remarks

Instantiate a CA system of the specified system id.

Java documentation for android.media.MediaCas.MediaCas(android.content.Context, int, java.lang.String, int).

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

MediaCas(Context, Int32, String, Int32, Handler, MediaCas+IEventListener)

Instantiate a CA system of the specified system id.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/lang/String;ILandroid/os/Handler;Landroid/media/MediaCas$EventListener;)V", "", ApiSince=31)]
public MediaCas(Android.Content.Context context, int casSystemId, string? tvInputServiceSessionId, int priorityHint, Android.OS.Handler? handler, Android.Media.MediaCas.IEventListener? listener);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ILjava/lang/String;ILandroid/os/Handler;Landroid/media/MediaCas$EventListener;)V", "", ApiSince=31)>]
new Android.Media.MediaCas : Android.Content.Context * int * string * int * Android.OS.Handler * Android.Media.MediaCas.IEventListener -> Android.Media.MediaCas

Parameters

context
Context

the context of the caller. This value cannot be null.

casSystemId
Int32

The system id of the CA system.

tvInputServiceSessionId
String

The Id of the session opened in TV Input Service (TIS) android.media.tv.TvInputService.onCreateSession(String,String) This value may be null.

priorityHint
Int32

priority hint from the use case type for new created CAS system. Value is one of the following: TvInputService.PRIORITY_HINT_USE_CASE_TYPE_BACKGROUND TvInputService.PRIORITY_HINT_USE_CASE_TYPE_SCAN TvInputService.PRIORITY_HINT_USE_CASE_TYPE_PLAYBACK TvInputService.PRIORITY_HINT_USE_CASE_TYPE_LIVE TvInputService.PRIORITY_HINT_USE_CASE_TYPE_RECORD

handler
Handler

the handler whose looper the event listener will be called on. If handler is null, we'll try to use current thread's looper, or the main looper. If neither are available, an internal thread will be created instead.

listener
MediaCas.IEventListener

the event listener to be set. This value may be null.

Attributes

Remarks

Android reference for android.media.MediaCas.MediaCas.

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