語言

Notification.CallStyle.SetAnswerButtonColorHint(Color) 方法

定義

可選顏色作為回答動作按鈕顏色的提示。

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

參數

color
Color

int

傳回

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

屬性

備註

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

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

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

適用於