Language

TvInteractiveAppView Constructors

Definition

Overloads

Name Description
TvInteractiveAppView(Context)

Creates a TV interactive app view with the supplied context.

TvInteractiveAppView(Context, IAttributeSet)

Creates a TV interactive app view with the supplied context and XML attributes.

TvInteractiveAppView(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

TvInteractiveAppView(Context, IAttributeSet, Int32)

Creates a TV interactive app view with XML attributes and a default style attribute.

TvInteractiveAppView(Context)

Creates a TV interactive app view with the supplied context.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=33)]
public TvInteractiveAppView(Android.Content.Context context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "", ApiSince=33)>]
new Android.Media.TV.Interactive.TvInteractiveAppView : Android.Content.Context -> Android.Media.TV.Interactive.TvInteractiveAppView

Parameters

context
Context

The context used to create the view and access its resources and system services.

Attributes

Remarks

Creates the view without an XML attribute set or a default style attribute. Prepare an interactive app separately to create its session.

Based on the Android 16 view implementation.

Applies to

TvInteractiveAppView(Context, IAttributeSet)

Creates a TV interactive app view with the supplied context and XML attributes.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "", ApiSince=33)]
public TvInteractiveAppView(Android.Content.Context context, Android.Util.IAttributeSet? attrs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;)V", "", ApiSince=33)>]
new Android.Media.TV.Interactive.TvInteractiveAppView : Android.Content.Context * Android.Util.IAttributeSet -> Android.Media.TV.Interactive.TvInteractiveAppView

Parameters

context
Context

The context used to create the view and access its resources and system services.

attrs
IAttributeSet

The XML attributes for the view, or null when no attribute set is supplied.

Attributes

Remarks

This overload uses zero for the default style attribute. Prepare an interactive app separately to create its session.

Based on the Android 16 view implementation.

Applies to

TvInteractiveAppView(IntPtr, JniHandleOwnership)

Creates a managed instance that represents an existing Java object.

protected TvInteractiveAppView(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Media.TV.Interactive.TvInteractiveAppView : nativeint * Android.Runtime.JniHandleOwnership -> Android.Media.TV.Interactive.TvInteractiveAppView

Parameters

javaReference
IntPtr

nativeint

A JNI reference to the Java object.

transfer
JniHandleOwnership

Specifies whether ownership of the JNI reference transfers to this instance.

Remarks

The runtime calls this constructor to create a managed representation of an existing Java object.

Applies to

TvInteractiveAppView(Context, IAttributeSet, Int32)

Creates a TV interactive app view with XML attributes and a default style attribute.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "", ApiSince=33)]
public TvInteractiveAppView(Android.Content.Context context, Android.Util.IAttributeSet? attrs, int defStyleAttr);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V", "", ApiSince=33)>]
new Android.Media.TV.Interactive.TvInteractiveAppView : Android.Content.Context * Android.Util.IAttributeSet * int -> Android.Media.TV.Interactive.TvInteractiveAppView

Parameters

context
Context

The context used to create the view and access its resources and system services.

attrs
IAttributeSet

The XML attributes for the view, or null when no attribute set is supplied.

defStyleAttr
Int32

The theme attribute that supplies the view's default style, or zero to omit a default style attribute.

Attributes

Remarks

The view uses these arguments when it creates its child surface view. Prepare an interactive app separately to create its session.

Based on the Android 16 view implementation.

Applies to