Language

Context.SendStickyBroadcast メソッド

定義

オーバーロード

Name 説明
SendStickyBroadcast(Intent)
古い.

"固定" である #sendBroadcast(Intent) を実行します。つまり、送信する意図はブロードキャストが完了した後も維持されるため、他のユーザーは #registerReceiver(BroadcastReceiver, IntentFilter)の戻り値を使用してそのデータをすばやく取得できます。

SendStickyBroadcast(Intent, Bundle)

"固定" である #sendBroadcast(Intent) を実行します。つまり、送信する意図はブロードキャストが完了した後も維持されるため、他のユーザーは #registerReceiver(BroadcastReceiver, IntentFilter)の戻り値を使用してそのデータをすばやく取得できます。

SendStickyBroadcast(Intent)

注意事項

deprecated

"固定" である #sendBroadcast(Intent) を実行します。つまり、送信する意図はブロードキャストが完了した後も維持されるため、他のユーザーは #registerReceiver(BroadcastReceiver, IntentFilter)の戻り値を使用してそのデータをすばやく取得できます。

[Android.Runtime.Register("sendStickyBroadcast", "(Landroid/content/Intent;)V", "GetSendStickyBroadcast_Landroid_content_Intent_Handler")]
[Android.Runtime.RequiresPermission("android.permission.BROADCAST_STICKY")]
[System.Obsolete("deprecated")]
public abstract void SendStickyBroadcast(Android.Content.Intent? intent);
[<Android.Runtime.Register("sendStickyBroadcast", "(Landroid/content/Intent;)V", "GetSendStickyBroadcast_Landroid_content_Intent_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.BROADCAST_STICKY")>]
[<System.Obsolete("deprecated")>]
abstract member SendStickyBroadcast : Android.Content.Intent -> unit

パラメーター

intent
Intent

ブロードキャストする意図。この意図に一致するすべての受信者はブロードキャストを受け取り、インテントは将来の受信者に再ブロードキャストされるように保持されます。

属性

注釈

"固定" である #sendBroadcast(Intent) を実行します。つまり、送信する意図はブロードキャストが完了した後も維持されるため、他のユーザーは #registerReceiver(BroadcastReceiver, IntentFilter)の戻り値を使用してそのデータをすばやく取得できます。 他のすべての方法では、これは #sendBroadcast(Intent)と同じように動作します。

このメンバーは非推奨です。 固定ブロードキャストは使用しないでください。 セキュリティ (誰でもアクセスできる)、保護 (誰でも変更できる)、その他多くの問題を提供しません。 推奨されるパターンは、非固定ブロードキャストを使用して、 <em>something</em> が変更されたことを報告し、必要に応じてアプリが現在の値を取得するための別のメカニズムを使用することです。

Javaドキュメント。

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

関連項目

  • SendBroadcast(Intent)
  • <xref:Android.Content.Context.SendStickyOrderedBroadcast(Android.Content.Intent%2c+Android.Content.BroadcastReceiver%2c+Android.Content.BroadcastReceiver%2c+Android.Content.BroadcastReceiver%2c+Android.Content.BroadcastReceiver%2c+Android.Content.BroadcastReceiver)>

適用対象

SendStickyBroadcast(Intent, Bundle)

"固定" である #sendBroadcast(Intent) を実行します。つまり、送信する意図はブロードキャストが完了した後も維持されるため、他のユーザーは #registerReceiver(BroadcastReceiver, IntentFilter)の戻り値を使用してそのデータをすばやく取得できます。

[Android.Runtime.Register("sendStickyBroadcast", "(Landroid/content/Intent;Landroid/os/Bundle;)V", "GetSendStickyBroadcast_Landroid_content_Intent_Landroid_os_Bundle_Handler", ApiSince=31)]
[Android.Runtime.RequiresPermission("android.permission.BROADCAST_STICKY")]
public virtual void SendStickyBroadcast(Android.Content.Intent intent, Android.OS.Bundle? options);
[<Android.Runtime.Register("sendStickyBroadcast", "(Landroid/content/Intent;Landroid/os/Bundle;)V", "GetSendStickyBroadcast_Landroid_content_Intent_Landroid_os_Bundle_Handler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("android.permission.BROADCAST_STICKY")>]
abstract member SendStickyBroadcast : Android.Content.Intent * Android.OS.Bundle -> unit
override this.SendStickyBroadcast : Android.Content.Intent * Android.OS.Bundle -> unit

パラメーター

intent
Intent

ブロードキャストする意図。この意図に一致するすべての受信者はブロードキャストを受け取り、インテントは将来の受信者に再ブロードキャストされるように保持されます。

options
Bundle

(省略可能) android.app.BroadcastOptionsから生成される追加の送信オプション。

属性

注釈

"固定" である #sendBroadcast(Intent) を実行します。つまり、送信する意図はブロードキャストが完了した後も維持されるため、他のユーザーは #registerReceiver(BroadcastReceiver, IntentFilter)の戻り値を使用してそのデータをすばやく取得できます。 他のすべての方法では、これは #sendBroadcast(Intent)と同じように動作します。

このメンバーは非推奨です。 固定ブロードキャストは使用しないでください。 セキュリティ (誰でもアクセスできる)、保護 (誰でも変更できる)、その他多くの問題を提供しません。 推奨されるパターンは、非固定ブロードキャストを使用して、 <em>something</em> が変更されたことを報告し、必要に応じてアプリが現在の値を取得するための別のメカニズムを使用することです。

Javaドキュメント。

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

適用対象