語言

Notification.CallStyle.SetDeclineButtonColorHint(Color) 方法

定義

可選顏色可作為拒絕或掛斷按鈕顏色的提示。

[Android.Runtime.Register("setDeclineButtonColorHint", "(I)Landroid/app/Notification$CallStyle;", "GetSetDeclineButtonColorHint_IHandler", ApiSince=31)]
public virtual Android.App.Notification.CallStyle SetDeclineButtonColorHint(Android.Graphics.Color color);
[<Android.Runtime.Register("setDeclineButtonColorHint", "(I)Landroid/app/Notification$CallStyle;", "GetSetDeclineButtonColorHint_IHandler", ApiSince=31)>]
abstract member SetDeclineButtonColorHint : Android.Graphics.Color -> Android.App.Notification.CallStyle
override this.SetDeclineButtonColorHint : Android.Graphics.Color -> Android.App.Notification.CallStyle

參數

color
Color

int

傳回

這個 Android.App.Notification.CallStyle 實例,允許通話串接。

屬性

備註

可選顏色可作為拒絕或掛斷按鈕顏色的提示。 系統可能會改變這個顏色,以確保與背景有足夠的對比度。 如果通知沒有被上色,系統可能會選擇忽略這個提示。

Android 參考資料。android.app.Notification.CallStyle.setDeclineButtonColorHint

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於