isValid

abstract fun isValid(): Boolean

Whether the Style instance is valid.

Style becomes invalid after MapView.onDestroy() is invoked, calling any method then could result in undefined behaviour and will print an error log.

Keeping the reference to an invalid Style instance introduces significant native memory leak.

Return

True if Style is valid and false otherwise.