共用方式為


Presentation 建構函式

定義

多載

Presentation(Context, Display)

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

Presentation(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

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())。

display
Display

應該附加簡報的顯示。

屬性

備註

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

android.app.Presentation.Presentation(android.content.Context, android.view.Display)Java 檔。

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

適用於

Presentation(IntPtr, JniHandleOwnership)

建立 JNI 物件的 Managed 表示法時使用的建構函式;由運行時間呼叫。

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

參數

javaReference
IntPtr

nativeint

IntPtr,包含 Java Native Interface (JNI) 對象參考。

transfer
JniHandleOwnership

JniHandleOwnership,指出如何處理javaReference

備註

此頁面的部分是根據 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())。 從 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.app.Presentation.Presentation(android.content.Context, android.view.Display, int)Java 檔。

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

適用於