共用方式為


ThumbnailTemplate 建構函式

定義

多載

ThumbnailTemplate(String, Boolean, Icon, ICharSequence)
ThumbnailTemplate(String, Boolean, Icon, String)

ThumbnailTemplate(String, Boolean, Icon, ICharSequence)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLandroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", "", ApiSince=31)]
public ThumbnailTemplate (string templateId, bool active, Android.Graphics.Drawables.Icon thumbnail, Java.Lang.ICharSequence contentDescription);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLandroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", "", ApiSince=31)>]
new Android.Service.Controls.Templates.ThumbnailTemplate : string * bool * Android.Graphics.Drawables.Icon * Java.Lang.ICharSequence -> Android.Service.Controls.Templates.ThumbnailTemplate

參數

templateId
String

此範本物件的識別碼

active
Boolean

影像是否對應至作用中 (即時) 資料流。

thumbnail
Icon

要顯示在上的影像 Control

contentDescription
ICharSequence

輔助功能影像的描述。

屬性

備註

android.service.controls.templates.ThumbnailTemplate.ThumbnailTemplate(java.lang.String, boolean, android.graphics.drawable.Icon, java.lang.CharSequence)Java 檔。

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

適用於

ThumbnailTemplate(String, Boolean, Icon, String)

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLandroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", "", ApiSince=31)]
public ThumbnailTemplate (string templateId, bool active, Android.Graphics.Drawables.Icon thumbnail, string contentDescription);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;ZLandroid/graphics/drawable/Icon;Ljava/lang/CharSequence;)V", "", ApiSince=31)>]
new Android.Service.Controls.Templates.ThumbnailTemplate : string * bool * Android.Graphics.Drawables.Icon * string -> Android.Service.Controls.Templates.ThumbnailTemplate

參數

templateId
String
active
Boolean
thumbnail
Icon
contentDescription
String
屬性

適用於