constructor(sourcePackageName: String?, sourceClassName: String? = null, policyProvider: PolicyProvider)



The package name of the application providing media source. If the policyProvider should be used for all media sources, then this must be null. sourceClassName must also be default or null in this case.


The exposed Android MediaBrowserService class. If the sourcePackageName provides a single media browser service, or the policyProvider should be used for all media browser services in the sourcePackageName, then this can be kept at its default of null. In this case the policy will be applied to all services of sourcePackageName which have the intent filter MediaBrowserService.SERVICE_INTERFACE.


The policies to apply for the given source.