ContextWrapper.SendOrderedBroadcast Méthode

Définition

Surcharges

SendOrderedBroadcast(Intent, Int32, String, String, BroadcastReceiver, Handler, String, Bundle, Bundle)

[Android.Runtime.Register("sendOrderedBroadcast", "(Landroid/content/Intent;ILjava/lang/String;Ljava/lang/String;Landroid/content/BroadcastReceiver;Landroid/os/Handler;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/Bundle;)V", "GetSendOrderedBroadcast_Landroid_content_Intent_ILjava_lang_String_Ljava_lang_String_Landroid_content_BroadcastReceiver_Landroid_os_Handler_Ljava_lang_String_Landroid_os_Bundle_Landroid_os_Bundle_Handler", ApiSince=30)]
public virtual void SendOrderedBroadcast(Android.Content.Intent intent, int initialCode, string? receiverPermission, string? receiverAppOp, Android.Content.BroadcastReceiver? resultReceiver, Android.OS.Handler? scheduler, string? initialData, Android.OS.Bundle? initialExtras, Android.OS.Bundle? options);
[<Android.Runtime.Register("sendOrderedBroadcast", "(Landroid/content/Intent;ILjava/lang/String;Ljava/lang/String;Landroid/content/BroadcastReceiver;Landroid/os/Handler;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/Bundle;)V", "GetSendOrderedBroadcast_Landroid_content_Intent_ILjava_lang_String_Ljava_lang_String_Landroid_content_BroadcastReceiver_Landroid_os_Handler_Ljava_lang_String_Landroid_os_Bundle_Landroid_os_Bundle_Handler", ApiSince=30)>]
override this.SendOrderedBroadcast : Android.Content.Intent * int * string * string * Android.Content.BroadcastReceiver * Android.OS.Handler * string * Android.OS.Bundle * Android.OS.Bundle -> unit

Paramètres

intent
Intent
initialCode
Int32
receiverPermission
String
receiverAppOp
String
resultReceiver
BroadcastReceiver
scheduler
Handler
initialData
String
initialExtras
Bundle
options
Bundle
Attributs

S’applique à

SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle)

La version de ce qui vous permet de SendBroadcast(Intent) recevoir des données de retour à partir de la diffusion.

[Android.Runtime.Register("sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V", "GetSendOrderedBroadcast_Landroid_content_Intent_Ljava_lang_String_Landroid_content_BroadcastReceiver_Landroid_os_Handler_ILjava_lang_String_Landroid_os_Bundle_Handler")]
public override void SendOrderedBroadcast(Android.Content.Intent? intent, string? receiverPermission, Android.Content.BroadcastReceiver? resultReceiver, Android.OS.Handler? scheduler, Android.App.Result initialCode, string? initialData, Android.OS.Bundle? initialExtras);
[<Android.Runtime.Register("sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V", "GetSendOrderedBroadcast_Landroid_content_Intent_Ljava_lang_String_Landroid_content_BroadcastReceiver_Landroid_os_Handler_ILjava_lang_String_Landroid_os_Bundle_Handler")>]
override this.SendOrderedBroadcast : Android.Content.Intent * string * Android.Content.BroadcastReceiver * Android.OS.Handler * Android.App.Result * string * Android.OS.Bundle -> unit

Paramètres

intent
Intent

Intention de diffusion ; tous les récepteurs correspondant à cette intention recevront la diffusion.

receiverPermission
String

Chaîne nommant les autorisations qu’un récepteur doit contenir pour recevoir votre diffusion. Si la valeur est Null, aucune autorisation n’est requise.

resultReceiver
BroadcastReceiver

Votre propre BroadcastReceiver à traiter comme le récepteur final de la diffusion.

scheduler
Handler

Gestionnaire personnalisé avec lequel planifier le rappel resultReceiver ; si la valeur null est planifiée dans le thread principal du contexte.

initialCode
Result

Valeur initiale pour le code de résultat. Souvent Activity.RESULT_OK.

initialData
String

Valeur initiale des données de résultat. Souvent null.

initialExtras
Bundle

Valeur initiale pour les extras de résultat. Souvent null.

Attributs

Remarques

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à

SendOrderedBroadcast(Intent, String)

[Android.Runtime.Register("sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;)V", "GetSendOrderedBroadcast_Landroid_content_Intent_Ljava_lang_String_Handler")]
public override void SendOrderedBroadcast(Android.Content.Intent? intent, string? receiverPermission);
[<Android.Runtime.Register("sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;)V", "GetSendOrderedBroadcast_Landroid_content_Intent_Ljava_lang_String_Handler")>]
override this.SendOrderedBroadcast : Android.Content.Intent * string -> unit

Paramètres

intent
Intent

Intention de diffusion ; tous les récepteurs correspondant à cette intention recevront la diffusion.

receiverPermission
String

(facultatif) Chaîne nommant les autorisations qu’un récepteur doit contenir pour recevoir votre diffusion. Si la valeur est Null, aucune autorisation n’est requise.

Attributs

Remarques

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à