MediaPolicyFrontendExtension

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

Parameters

sourcePackageName

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.

sourceClassName

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.

policyProvider

The policies to apply for the given source.