NotificationChannel.LightColor 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
傳回張貼至此通道之通知的通知淺色。 -或- 如果燈光位於 #enableLights(boolean) enabled
此通道上,且裝置支援該功能,則設定張貼至此通道之通知的通知淺色。
public int LightColor { [Android.Runtime.Register("getLightColor", "()I", "", ApiSince=26)] get; [Android.Runtime.Register("setLightColor", "(I)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getLightColor", "()I", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setLightColor", "(I)V", "", ApiSince=26)>]
member this.LightColor : int with get, set
屬性值
- 屬性
備註
屬性 getter 檔:
傳回張貼至此通道之通知的通知淺色。 除非 是,否則 #shouldShowLights()
無關。
的 android.app.NotificationChannel.getLightColor()
Java 檔。
屬性 setter 檔:
如果燈位於 #enableLights(boolean) enabled
此通道上,且裝置支援該功能,則設定通知張貼至此通道的通知淺色。
只有在通道提交至 NotificationManager#createNotificationChannel(NotificationChannel)
之前,才可修改。
的 android.app.NotificationChannel.setLightColor(int)
Java 檔。
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。