语言

Notification.WearableExtender.SetHintAvoidBackgroundClipping(Boolean) 方法

定义

设置提示:如果可能,不应剪裁此通知的背景,而是应调整大小以完全在屏幕上显示,从而保留图像的纵横比。

[Android.Runtime.Register("setHintAvoidBackgroundClipping", "(Z)Landroid/app/Notification$WearableExtender;", "", ApiSince=22)]
public Android.App.Notification.WearableExtender? SetHintAvoidBackgroundClipping(bool hintAvoidBackgroundClipping);
[<Android.Runtime.Register("setHintAvoidBackgroundClipping", "(Z)Landroid/app/Notification$WearableExtender;", "", ApiSince=22)>]
member this.SetHintAvoidBackgroundClipping : bool -> Android.App.Notification.WearableExtender

参数

hintAvoidBackgroundClipping
Boolean

布尔值:如果可能,请避免剪裁

返回

此方法链接的此对象

特性

注解

设置提示:如果可能,不应剪裁此通知的背景,而是应调整大小以完全在屏幕上显示,从而保留图像的纵横比。 这对于条形码或 qr 码等图像非常有用。

Android 参考。android.app.Notification.WearableExtender.setHintAvoidBackgroundClipping

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于