BroadcastOptions.SetShareIdentityEnabled(Boolean) Method
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.
Sets whether the identity of the broadcasting app should be shared with all receivers that will receive this broadcast.
[Android.Runtime.Register("setShareIdentityEnabled", "(Z)Landroid/app/BroadcastOptions;", "GetSetShareIdentityEnabled_ZHandler", ApiSince=34)]
public virtual Android.App.BroadcastOptions SetShareIdentityEnabled (bool shareIdentityEnabled);
[<Android.Runtime.Register("setShareIdentityEnabled", "(Z)Landroid/app/BroadcastOptions;", "GetSetShareIdentityEnabled_ZHandler", ApiSince=34)>]
abstract member SetShareIdentityEnabled : bool -> Android.App.BroadcastOptions
override this.SetShareIdentityEnabled : bool -> Android.App.BroadcastOptions
Parameters
- shareIdentityEnabled
- Boolean
whether the broadcasting app's identity should be shared with the receiver
Returns
this
BroadcastOptions
instance
- Attributes
Remarks
Sets whether the identity of the broadcasting app should be shared with all receivers that will receive this broadcast.
Use this option when broadcasting to a receiver that needs to know the identity of the broadcaster; with this set to true
, the receiver will have access to the broadcasting app's package name and uid.
Defaults to false
if not set.
Java documentation for android.app.BroadcastOptions.setShareIdentityEnabled(boolean)
.
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.