Notification.Builder.SetOnlyAlertOnce(Boolean) メソッド

定義

通知がまだ表示されていない場合にのみサウンド、振動、ティッカーを再生する場合は、このフラグを設定します。

[Android.Runtime.Register("setOnlyAlertOnce", "(Z)Landroid/app/Notification$Builder;", "GetSetOnlyAlertOnce_ZHandler")]
public virtual Android.App.Notification.Builder SetOnlyAlertOnce(bool onlyAlertOnce);
[<Android.Runtime.Register("setOnlyAlertOnce", "(Z)Landroid/app/Notification$Builder;", "GetSetOnlyAlertOnce_ZHandler")>]
abstract member SetOnlyAlertOnce : bool -> Android.App.Notification.Builder
override this.SetOnlyAlertOnce : bool -> Android.App.Notification.Builder

パラメーター

onlyAlertOnce
Boolean

boolean

返品

この Android.App.Notification.Builder インスタンス。呼び出しをチェーンできます。

属性

注釈

通知がまだ表示されていない場合にのみサウンド、振動、ティッカーを再生する場合は、このフラグを設定します。 このフラグを使用すると、音、振動、点滅通知 LED などの継続的なアラート動作が停止することに注意してください。

関連項目も参照:

android.app.Notification.Builder.setOnlyAlertOnceの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象