setDisplayRule

@AnyThread
fun setDisplayRule(@Nullable displayRule: LocationDisplayRule, @Nullable location: MPLocation)

Sets a LocationDisplayRule on a single MPLocation

This display rule takes precedence over more general displayrules like the type-display-rule

Parameters

displayRule

The LocationDisplayRule to apply to the given MPLocation

location

@AnyThread
fun setDisplayRule(@Nullable displayRule: LocationDisplayRule, @Nullable locations: List<MPLocation>)

Sets a LocationDisplayRule on given MPLocation set

This display rule takes precedence over more general displayrules like the type-display-rule

Parameters

displayRule

The LocationDisplayRule to apply to the given MPLocation

locations

A list of MPLocation that will be set to the given LocationDisplayRule


@AnyThread
fun setDisplayRule(@Nullable displayRuleName: String, @Nullable location: MPLocation)

Sets a LocationDisplayRule on the given MPLocation

This display rule takes precedence over more general display rules like the type-display-rule

Parameters

displayRuleName

The name of the LocationDisplayRule that should be applied to the given MPLocation

location

@AnyThread
fun setDisplayRule(@Nullable displayRuleName: String, @Nullable locations: List<MPLocation>)

Sets a LocationDisplayRule on the given MPLocation set

This display rule takes precedence over more general display rules like the type-display-rule

Parameters

displayRuleName

The name of the LocationDisplayRule that should be applied to the given MPLocation

locations

A list of MPLocation that will be set to the given LocationDisplayRule