Udostępnij za pośrednictwem


DevicePolicyManager.NearbyAppStreamingPolicy Property

Definition

Returns the current runtime nearby app streaming policy set by the device or profile owner. -or- Called by a device/profile owner to set nearby app streaming policy.

public virtual int NearbyAppStreamingPolicy { [Android.Runtime.Register("getNearbyAppStreamingPolicy", "()I", "GetGetNearbyAppStreamingPolicyHandler", ApiSince=31)] [Android.Runtime.RequiresPermission("android.permission.READ_NEARBY_STREAMING_POLICY")] get; [Android.Runtime.Register("setNearbyAppStreamingPolicy", "(I)V", "GetSetNearbyAppStreamingPolicy_IHandler", ApiSince=31)] set; }
[<get: Android.Runtime.Register("getNearbyAppStreamingPolicy", "()I", "GetGetNearbyAppStreamingPolicyHandler", ApiSince=31)>]
[<get: Android.Runtime.RequiresPermission("android.permission.READ_NEARBY_STREAMING_POLICY")>]
[<set: Android.Runtime.Register("setNearbyAppStreamingPolicy", "(I)V", "GetSetNearbyAppStreamingPolicy_IHandler", ApiSince=31)>]
member this.NearbyAppStreamingPolicy : int with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the current runtime nearby app streaming policy set by the device or profile owner.

The caller must be the target user's device owner/profile owner or hold the android.Manifest.permission#READ_NEARBY_STREAMING_POLICY READ_NEARBY_STREAMING_POLICY permission.

Java documentation for android.app.admin.DevicePolicyManager.getNearbyAppStreamingPolicy().

Property setter documentation:

Called by a device/profile owner to set nearby app streaming policy. App streaming is when the device starts an app on a virtual display and sends a video stream of the app to nearby devices.

Java documentation for android.app.admin.DevicePolicyManager.setNearbyAppStreamingPolicy(int).

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