Presentation Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| Presentation(Context, Display) |
Creates a new presentation that is attached to the specified display using the default theme. |
| Presentation(IntPtr, JniHandleOwnership) |
Initializes a managed representation of an existing Java Native Interface object. |
| 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
Context: The context of the application that is showing the presentation. The presentation will create its own context (see Dialog.getContext()) based on this context and information about the associated display. The presentation is associated with the UID of this context for policy enforcement.
- 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.
Android reference for android.app.Presentation.Presentation.
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)
Initializes a managed representation of an existing Java Native Interface object.
protected Presentation(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Presentation : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Presentation
Parameters
- javaReference
-
IntPtr
nativeint
The Java Native Interface object reference.
- transfer
- JniHandleOwnership
The ownership transfer to apply to the Java Native Interface object reference.
Remarks
This constructor is called by the .NET for Android binding runtime when it creates a managed peer for an existing Java object.
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
Context: The context of the application that is showing the presentation. The presentation will create its own context (see Dialog.getContext()) based on this context and information about the associated display. The presentation is associated with the UID of this context for policy enforcement. From 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 getWindow.setType(int) causes the mismatch of the window and the created window context, which leads to WindowManager.InvalidDisplayException when invoking show().
- display
- Display
Display: The display to which the presentation should be attached.
- theme
- Int32
int: 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 outerContext. 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.
Android reference for android.app.Presentation.Presentation.
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.