Language

Context.SendBroadcast メソッド

定義

オーバーロード

Name 説明
SendBroadcast(Intent)

関心のあるすべての BroadcastReceivers に特定の意図をブロードキャストします。

SendBroadcast(Intent, String)

必要に応じて必要なアクセス許可を適用できるように、すべての関心のある BroadcastReceivers に特定の意図をブロードキャストします。

SendBroadcast(Intent, String, Bundle)

必要に応じて必要なアクセス許可を適用できるように、すべての関心のある BroadcastReceivers に特定の意図をブロードキャストします。

SendBroadcast(Intent)

関心のあるすべての BroadcastReceivers に特定の意図をブロードキャストします。

[Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;)V", "GetSendBroadcast_Landroid_content_Intent_Handler")]
public abstract void SendBroadcast(Android.Content.Intent? intent);
[<Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;)V", "GetSendBroadcast_Landroid_content_Intent_Handler")>]
abstract member SendBroadcast : Android.Content.Intent -> unit

パラメーター

intent
Intent

ブロードキャストする意図。このインテントに一致するすべての受信者がブロードキャストを受信します。

属性

注釈

関心のあるすべての BroadcastReceivers に特定の意図をブロードキャストします。 この呼び出しは非同期です。すぐに戻り、受信側の実行中に実行を続行します。 受信側から結果は伝達されず、受信側はブロードキャストを中止できません。 受信側が結果を伝達したり、ブロードキャストを中止したりできるようにするには、 #sendOrderedBroadcast(Intent, String)を使用して順序付けされたブロードキャストを送信する必要があります。

インテント ブロードキャストの詳細については、 BroadcastReceiver を参照してください。

android.content.Context.sendBroadcast(android.content.Intent)の Java ドキュメント。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

関連項目

  • BroadcastReceiver
  • <xref:Android.Content.Context.RegisterReceiver(Android.Content.BroadcastReceiver%2c+Android.Content.IntentFilter)>
  • <xref:Android.Content.Context.SendBroadcast(Android.Content.Intent%2c+System.String)>
  • <xref:Android.Content.Context.SendOrderedBroadcast(Android.Content.Intent%2c+System.String)>
  • <xref:Android.Content.Context.SendOrderedBroadcast(Android.Content.Intent%2c+System.String%2c+System.String%2c+System.String%2c+System.String%2c+System.String%2c+System.String)>

適用対象

SendBroadcast(Intent, String)

必要に応じて必要なアクセス許可を適用できるように、すべての関心のある BroadcastReceivers に特定の意図をブロードキャストします。

[Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;Ljava/lang/String;)V", "GetSendBroadcast_Landroid_content_Intent_Ljava_lang_String_Handler")]
public abstract void SendBroadcast(Android.Content.Intent? intent, string? receiverPermission);
[<Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;Ljava/lang/String;)V", "GetSendBroadcast_Landroid_content_Intent_Ljava_lang_String_Handler")>]
abstract member SendBroadcast : Android.Content.Intent * string -> unit

パラメーター

intent
Intent

ブロードキャストする意図。このインテントに一致するすべての受信者がブロードキャストを受信します。

receiverPermission
String

(省略可能)ブロードキャストを受信するために受信者が保持する必要があるアクセス許可に名前を付ける文字列。 null の場合、アクセス許可は必要ありません。

属性

注釈

必要に応じて必要なアクセス許可を適用できるように、すべての関心のある BroadcastReceivers に特定の意図をブロードキャストします。 この呼び出しは非同期です。すぐに戻り、受信側の実行中に実行を続行します。 受信側から結果は伝達されず、受信側はブロードキャストを中止できません。 受信側が結果を伝達したり、ブロードキャストを中止したりできるようにするには、 #sendOrderedBroadcast(Intent, String)を使用して順序付けされたブロードキャストを送信する必要があります。

インテント ブロードキャストの詳細については、 BroadcastReceiver を参照してください。

android.content.Context.sendBroadcast(android.content.Intent, java.lang.String)の Java ドキュメント。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

関連項目

  • BroadcastReceiver
  • <xref:Android.Content.Context.RegisterReceiver(Android.Content.BroadcastReceiver%2c+Android.Content.IntentFilter)>
  • SendBroadcast(Intent)
  • <xref:Android.Content.Context.SendOrderedBroadcast(Android.Content.Intent%2c+System.String)>
  • <xref:Android.Content.Context.SendOrderedBroadcast(Android.Content.Intent%2c+System.String%2c+System.String%2c+System.String%2c+System.String%2c+System.String%2c+System.String)>

適用対象

SendBroadcast(Intent, String, Bundle)

必要に応じて必要なアクセス許可を適用できるように、すべての関心のある BroadcastReceivers に特定の意図をブロードキャストします。

[Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;Ljava/lang/String;Landroid/os/Bundle;)V", "GetSendBroadcast_Landroid_content_Intent_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=34)]
public virtual void SendBroadcast(Android.Content.Intent intent, string? receiverPermission, Android.OS.Bundle? options);
[<Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;Ljava/lang/String;Landroid/os/Bundle;)V", "GetSendBroadcast_Landroid_content_Intent_Ljava_lang_String_Landroid_os_Bundle_Handler", ApiSince=34)>]
abstract member SendBroadcast : Android.Content.Intent * string * Android.OS.Bundle -> unit
override this.SendBroadcast : Android.Content.Intent * string * Android.OS.Bundle -> unit

パラメーター

intent
Intent

ブロードキャストする意図。このインテントに一致するすべての受信者がブロードキャストを受信します。

receiverPermission
String

(省略可能)ブロードキャストを受信するために受信者が保持する必要があるアクセス許可に名前を付ける文字列。 null の場合、アクセス許可は必要ありません。

options
Bundle

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

属性

注釈

必要に応じて必要なアクセス許可を適用できるように、すべての関心のある BroadcastReceivers に特定の意図をブロードキャストします。 この呼び出しは非同期です。すぐに戻り、受信側の実行中に実行を続行します。 受信側から結果は伝達されず、受信側はブロードキャストを中止できません。 受信側が結果を伝達したり、ブロードキャストを中止したりできるようにするには、 #sendOrderedBroadcast(Intent, String)を使用して順序付けされたブロードキャストを送信する必要があります。

インテント ブロードキャストの詳細については、 BroadcastReceiver を参照してください。

android.content.Context.sendBroadcast(android.content.Intent, java.lang.String, android.os.Bundle)の Java ドキュメント。

このページの一部は、Androidオープンソースプロジェクトによって作成および共有された作業に基づく変更でありCreative Commons 2.5属性ライセンスに記載されている条件に従って使用されます。

適用対象