Language

MediaRoute2Info.ProviderPackageName Property

Definition

Gets the package name of the provider that published the route, or null if it has not yet been populated.

public string? ProviderPackageName { [Android.Runtime.Register("getProviderPackageName", "()Ljava/lang/String;", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("getProviderPackageName", "()Ljava/lang/String;", "", ApiSince=37)>]
member this.ProviderPackageName : string

Property Value

Gets the package name of the provider that published the route, or null if it has not yet been populated.

Attributes

Remarks

Gets the package name of the provider that published the route, or null if it has not yet been populated.

The package name of the route provider is populated by the system as part of MediaRoute2ProviderService.notifyRoutes(java.util.Collection). As a result, it's expectable that a MediaRoute2Info instance that hasn't yet been published will have a null provider package name. Otherwise, routes obtained via MediaRouter2 should have a populated provider package name.

Android reference for android.media.MediaRoute2Info.getProviderPackageName.

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