PluginDependencyDeclaration

interface PluginDependencyDeclaration

Used to declare how to map plugin dependencies.

Author

凛 (https://github.com/RinOrz)

Types

Companion
Link copied to clipboard
object Companion

Functions

filter
Link copied to clipboard
abstract fun filter(predicate: PluginId.() -> Boolean)

If the predicate is true, the corresponding plugin id will be mapped, otherwise it will not be mapped.

filterNot
Link copied to clipboard
open fun filterNot(predicate: PluginId.() -> Boolean)

If the predicate is false, the corresponding plugin id will be mapped, otherwise it will not be mapped.

map
Link copied to clipboard
abstract fun map(vararg pluginIds: CharSequence)
open fun map(pluginIds: Iterable<CharSequence>)

Adds the given pluginIds to map as path.

abstract fun map(vararg pluginIdsAndPaths: Pair<CharSequence, CharSequence>)
open fun map(pluginIdsAndPaths: Map<out CharSequence, CharSequence>)

Adds the given pair to map the plugin ids to the specified mapped paths.

search
Link copied to clipboard
abstract fun search(vararg keywords: CharSequence, declaration: SearchDeclaration<PluginId>.() -> Unit = {})
open fun search(keywords: Iterable<CharSequence>, declaration: SearchDeclaration<PluginId>.() -> Unit = {})

Adds a request to searches remote plugin ids by keywords.

searchDefaultOptions
Link copied to clipboard
abstract fun searchDefaultOptions(declaration: SearchDeclaration<PluginId>.() -> Unit)

Adds a default search options block. All search requests will use the specified declaration by default.

searchPrefixes
Link copied to clipboard
abstract fun searchPrefixes(vararg prefixes: CharSequence, declaration: SearchDeclaration<PluginId>.() -> Unit = {})
open fun searchPrefixes(prefixes: Iterable<CharSequence>, declaration: SearchDeclaration<PluginId>.() -> Unit = {})

Adds a request to searches for remote plugin ids where the specified prefixes exist.