Compartilhar via


BroadcastReceiver.SentFromPackage Property

Definition

Returns the package name of the app that initially sent this broadcast.

public virtual string? SentFromPackage { [Android.Runtime.Register("getSentFromPackage", "()Ljava/lang/String;", "GetGetSentFromPackageHandler", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getSentFromPackage", "()Ljava/lang/String;", "GetGetSentFromPackageHandler", ApiSince=34)>]
member this.SentFromPackage : string

Property Value

the package name of the broadcasting app or null if the current receiver cannot access the identity of the broadcasting app

Attributes

Remarks

Returns the package name of the app that initially sent this broadcast.

Java documentation for android.content.BroadcastReceiver.getSentFromPackage().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to