BroadcastReceiver.SentFromPackage Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.