MediaRoute2Info.Builder.SetVisibilityRestricted 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.
Overloads
| Name | Description |
|---|---|
| SetVisibilityRestricted(ICollection<String>) |
Sets the visibility of this route to restricted. |
| SetVisibilityRestricted(ICollection<String>, Boolean) |
Sets the visibility of this route to restricted. |
SetVisibilityRestricted(ICollection<String>)
Sets the visibility of this route to restricted.
[Android.Runtime.Register("setVisibilityRestricted", "(Ljava/util/Set;)Landroid/media/MediaRoute2Info$Builder;", "", ApiSince=34)]
public Android.Media.MediaRoute2Info.Builder SetVisibilityRestricted(System.Collections.Generic.ICollection<string> allowedPackages);
[<Android.Runtime.Register("setVisibilityRestricted", "(Ljava/util/Set;)Landroid/media/MediaRoute2Info$Builder;", "", ApiSince=34)>]
member this.SetVisibilityRestricted : System.Collections.Generic.ICollection<string> -> Android.Media.MediaRoute2Info.Builder
Parameters
- allowedPackages
- ICollection<String>
set of package names which are allowed to see this route. This value cannot be null.
Returns
- Attributes
Remarks
Sets the visibility of this route to restricted. Routes with restricted visibility are only visible to its publisher application and applications whose package name is included in the provided allowedPackages set with a matching feature. Calls to this method override previous calls to setVisibilityPublic() and setVisibilityRestricted(Set).
Android reference for android.media.MediaRoute2Info.Builder.setVisibilityRestricted.
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
SetVisibilityRestricted(ICollection<String>, Boolean)
Sets the visibility of this route to restricted.
[Android.Runtime.Register("setVisibilityRestricted", "(Ljava/util/Set;Z)Landroid/media/MediaRoute2Info$Builder;", "", ApiSince=36)]
public Android.Media.MediaRoute2Info.Builder SetVisibilityRestricted(System.Collections.Generic.ICollection<string> allowedPackages, bool alsoAllowPrivileged);
[<Android.Runtime.Register("setVisibilityRestricted", "(Ljava/util/Set;Z)Landroid/media/MediaRoute2Info$Builder;", "", ApiSince=36)>]
member this.SetVisibilityRestricted : System.Collections.Generic.ICollection<string> * bool -> Android.Media.MediaRoute2Info.Builder
Parameters
- allowedPackages
- ICollection<String>
set of package names which are allowed to see this route. This value cannot be null.
- alsoAllowPrivileged
- Boolean
whether packages not explicitly listed in allowedPackages, but holding privileged routing permissions, can also see this route.
Returns
- Attributes
Remarks
Sets the visibility of this route to restricted.
Android reference for android.media.MediaRoute2Info.Builder.setVisibilityRestricted.
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.