言語

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

定義

これが "進行中" の通知であるかどうかを設定します。

[Android.Runtime.Register("setOngoing", "(Z)Landroid/app/Notification$Builder;", "GetSetOngoing_ZHandler")]
public virtual Android.App.Notification.Builder SetOngoing(bool ongoing);
[<Android.Runtime.Register("setOngoing", "(Z)Landroid/app/Notification$Builder;", "GetSetOngoing_ZHandler")>]
abstract member SetOngoing : bool -> Android.App.Notification.Builder
override this.SetOngoing : bool -> Android.App.Notification.Builder

パラメーター

ongoing
Boolean

boolean

返品

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

属性

注釈

これが "進行中" の通知であるかどうかを設定します。 ロックされたデバイス上のユーザーまたは通知リスナーによって継続的な通知を無視することはできません。また、ロック解除されたデバイスでは一部の通知 (通話、デバイス管理、メディア) を無視できないため、アプリケーションまたはサービスでキャンセルの処理を行う必要があります。 通常は、ユーザーがアクティブに参加しているバックグラウンド タスク (音楽の再生など) を示すために使用されます。そのため、何らかの方法で保留中であり、デバイス (ファイルのダウンロード、同期操作、アクティブなネットワーク接続など) を占有します。

関連項目も参照:

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

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

適用対象