OnlineManager

Types

MapStreamingError
Link copied to clipboard
enum MapStreamingError : Enum<OnlineManager.MapStreamingError>
MapStreamingListener
Link copied to clipboard
interface MapStreamingListener : NativeMethodsReceiver.NativeListener

Functions

addMapFlagSettingErrorListener
Link copied to clipboard
fun addMapFlagSettingErrorListener(listener: OnlineManager.MapStreamingListener, executor: Executor? = null)
callMethod
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> callMethod(clazz: Class<T>, callback: NativeMethodsReceiver.NativeCallback<T>)
disableOnlineMapStreaming
Link copied to clipboard
fun disableOnlineMapStreaming(listener: OnlineManager.MapStreamingListener)

Disables online maps

enableOnlineMapStreaming
Link copied to clipboard
fun enableOnlineMapStreaming(listener: OnlineManager.MapStreamingListener)

Enables online maps

getActiveMapProvider
Link copied to clipboard
fun getActiveMapProvider(listener: GetActiveMapProviderListener, executor: Executor? = null)

Fetch currently active Online Map Provider.

getAvailableMapProviders
Link copied to clipboard
fun getAvailableMapProviders(listener: GetMapProvidersListener, executor: Executor? = null)

Fetch currently available Online Map Providers.

getListeners
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> getListeners(clazz: Class<T>): MutableMap<T, Executor>
isOnlineMapStreamingEnabled
Link copied to clipboard
fun isOnlineMapStreamingEnabled(): Boolean

Returns if online maps are enabled

onContextDestroy
Link copied to clipboard
open override fun onContextDestroy()
register
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> register(clazz: Class<T>, listener: T): Int
open fun <T : NativeMethodsReceiver.NativeListener> register(clazz: Class<T>, listener: T, @Nullable executor: Executor?): Int
removeMapFlagSettingErrorListener
Link copied to clipboard
setActiveMapProvider
Link copied to clipboard
fun setActiveMapProvider(provider: MapProvider, listener: SetActiveMapProviderListener, executor: Executor? = null)

Set active Map Provider. Does nothing if the currently active provider is the same as desired one.

size
Link copied to clipboard
open fun size(): Int
unregister
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> unregister(clazz: Class<T>, listener: T): Int