Presentation Constructors

Definition

Overloads

Presentation(Context, Display)

Creates a new presentation that is attached to the specified display using the default theme.

Presentation(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Presentation(Context, Display, Int32)

Creates a new presentation that is attached to the specified display using the optionally specified theme.

Presentation(Context, Display)

Creates a new presentation that is attached to the specified display using the default theme.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;)V", "")]
public Presentation (Android.Content.Context? outerContext, Android.Views.Display? display);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;)V", "")>]
new Android.App.Presentation : Android.Content.Context * Android.Views.Display -> Android.App.Presentation

Parameters

outerContext
Context

The context of the application that is showing the presentation. The presentation will create its own context (see #getContext()) based on this context and information about the associated display.

display
Display

The display to which the presentation should be attached.

Attributes

Remarks

Creates a new presentation that is attached to the specified display using the default theme.

Java documentation for android.app.Presentation.Presentation(android.content.Context, android.view.Display).

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

Presentation(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Presentation (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Presentation : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Presentation

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

Presentation(Context, Display, Int32)

Creates a new presentation that is attached to the specified display using the optionally specified theme.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;I)V", "")]
public Presentation (Android.Content.Context? outerContext, Android.Views.Display? display, int theme);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/view/Display;I)V", "")>]
new Android.App.Presentation : Android.Content.Context * Android.Views.Display * int -> Android.App.Presentation

Parameters

outerContext
Context

The context of the application that is showing the presentation. The presentation will create its own context (see #getContext()) based on this context and information about the associated display. From android.os.Build.VERSION_CODES#S, the presentation will create its own window context based on this context, information about the associated display. Customizing window type by Window#setType(int) #getWindow#setType(int) causes the mismatch of the window and the created window context, which leads to android.view.WindowManager.InvalidDisplayException when invoking #show().

display
Display

The display to which the presentation should be attached.

theme
Int32

A style resource describing the theme to use for the window. See Style and Theme Resources for more information about defining and using styles. This theme is applied on top of the current theme in <var>outerContext</var>. If 0, the default presentation theme will be used.

Attributes

Remarks

Creates a new presentation that is attached to the specified display using the optionally specified theme.

Java documentation for android.app.Presentation.Presentation(android.content.Context, android.view.Display, 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