IntentFilterConfig

data class IntentFilterConfig(val actions: List<String>, val categories: List<String> = emptyList(), val dataTypes: List<String> = emptyList(), val dataSchemas: List<String> = emptyList()) : Serializable

Intent filter configuration suitable for being used in Gradle configurations.

Corresponds to the intent-filter Android manifest XML element and Android's IntentFilter class.

See the filter rules for more information about how intents are matched against intent filters. This class is limited to actions, categories, dataTypes and dataSchemas.

Parameters

actions

The actions to match against. Each value can be any value that can be passed to IntentFilter.addAction or that can be set as action in the Android manifest XML file.

categories

The categories to match against. Each value can be any value that can be passed to IntentFilter.addCategory or that can be set as category in the Android manifest XML file.

dataTypes

The data types to match against. Each value can be any value that can be passed to IntentFilter.addDataType or that can be set as android:mimeType in the Android manifest XML file.

dataSchemas

The data schemas to match against. Each value can be any value that can be passed to IntentFilter.addDataScheme or that can be set as android:scheme in the Android manifest XML file.

Constructors

Link copied to clipboard
constructor(action: String, category: String? = null, dataType: String? = null, dataScheme: String? = null)
constructor(actions: List<String>, categories: List<String> = emptyList(), dataTypes: List<String> = emptyList(), dataSchemas: List<String> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard