Language

Notification.Builder コンストラクター

定義

オーバーロード

Name 説明
Notification.Builder(Context)

このコンストラクターは非推奨です。

Notification.Builder(Context, String)

既定値を使用して新しいビルダーを構築します。

Notification.Builder(IntPtr, JniHandleOwnership)

既存の Java Native Interface オブジェクトのマネージド表現を初期化します。

Notification.Builder(Context)

このコンストラクターは非推奨です。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]
public Builder(Android.Content.Context? context);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]
new Android.App.Notification.Builder : Android.Content.Context -> Android.App.Notification.Builder

パラメーター

context
Context

Context

属性

注釈

このコンストラクターは非推奨です。 代わりに Builder(Context,String) を使用してください。 投稿されたすべての通知では、NotificationChannel ID を指定する必要があります。

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

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

適用対象

Notification.Builder(Context, String)

既定値を使用して新しいビルダーを構築します。

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;)V", "", ApiSince=26)]
public Builder(Android.Content.Context? context, string? channelId);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Ljava/lang/String;)V", "", ApiSince=26)>]
new Android.App.Notification.Builder : Android.Content.Context * string -> Android.App.Notification.Builder

パラメーター

context
Context

コンテキスト: RemoteView を構築するためにビルダーによって使用されるコンテキスト。 コンテキストは、この Builder オブジェクトの有効期間を過ぎても保持されません。

channelId
String

文字列: 構築された通知は、この NotificationChannel に投稿されます。 NotificationChannel を使用するには、最初に NotificationManager.createNotificationChannel を使用して作成する必要があります。

属性

注釈

既定値を使用して新しいビルダーを構築します。

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

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

適用対象

Notification.Builder(IntPtr, JniHandleOwnership)

既存の Java Native Interface オブジェクトのマネージド表現を初期化します。

protected Builder(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.Notification.Builder : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.Notification.Builder

パラメーター

javaReference
IntPtr

nativeint

Java ネイティブ インターフェイス オブジェクト参照。

transfer
JniHandleOwnership

Java Native Interface オブジェクト参照に適用する所有権の転送。

注釈

このコンストラクターは、既存のJava オブジェクトのマネージド ピアを作成するときに、Android バインド ランタイムの.NETによって呼び出されます。

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

適用対象