語言

Presentation 建構函式

定義

多載

名稱 Description
Presentation(Context, Display)

使用預設主題,建立附加至指定顯示的新簡報。

Presentation(IntPtr, JniHandleOwnership)

初始化現有 Java 原生介面物件的受管理表示。

Presentation(Context, Display, Int32)

使用選擇性指定的主題,建立附加至指定顯示的新簡報。

Presentation(Context, Display)

使用預設主題,建立附加至指定顯示的新簡報。

[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

參數

outerContext
Context

顯示簡報之應用程式的內容。 簡報會根據此內容和相關聯顯示的相關信息,建立自己的內容(請參閱 #getContext())。 該呈現與此上下文的 UID 相關聯,以便政策執行。

display
Display

應該附加簡報的顯示。

屬性

備註

使用預設主題,建立附加至指定顯示的新簡報。

Android 參考資料。android.app.Presentation.Presentation

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Presentation(IntPtr, JniHandleOwnership)

初始化現有 Java 原生介面物件的受管理表示。

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

參數

javaReference
IntPtr

nativeint

Java 原生介面物件參考。

transfer
JniHandleOwnership

所有權轉移應用於 Java 原生介面物件參考。

備註

當 .NET 為 Android 綁定執行時建立一個受管理的 Java 物件時,會呼叫這個建構子。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於

Presentation(Context, Display, Int32)

使用選擇性指定的主題,建立附加至指定顯示的新簡報。

[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

參數

outerContext
Context

顯示簡報之應用程式的內容。 簡報會根據此內容和相關聯顯示的相關信息,建立自己的內容(請參閱 #getContext())。 該呈現與此上下文的 UID 相關聯,以便政策執行。 從 android.os.Build.VERSION_CODES#S,簡報會根據此內容建立自己的窗口內容,以及相關聯顯示的相關信息。 藉由 Window#setType(int) #getWindow#setType(int) 自定義窗口類型會導致視窗和已建立的視窗內容不符,這會導致 android.view.WindowManager.InvalidDisplayException 叫 #show()用 時。

display
Display

應該附加簡報的顯示。

theme
Int32

描述視窗使用之主題的樣式資源。 請參閱風格與主題資源,了解更多關於定義與使用風格的資訊。 此主題會套用在 var<outerContext>/var< 中目前的主題>之上。 如果為 0,則會使用預設的簡報主題。

屬性

備註

使用選擇性指定的主題,建立附加至指定顯示的新簡報。

Android 參考資料。android.app.Presentation.Presentation

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於