getDisplayRule

@Nullable
fun getDisplayRule(type: String): LocationDisplayRule

Gets the LocationDisplayRule with the given type (name)

Return

A LocationDisplayRule or null if a LocationDisplayRule with the given name wasn't found

Parameters

type

@Nullable
@AnyThread
fun getDisplayRule(@Nullable location: MPLocation): LocationDisplayRule

Gets the LocationDisplayRule currently being used by the given MPLocation

Return

A LocationDisplayRule or null (if the given location has an overridden icon set in the CMS or if it is null)

Parameters

location

The MPLocation we want to get its current LocationDisplayRule