Skip to content

Feature

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

interface Feature

Interface to be implemented by the feature, which doesn't require any storage, to be registered with SdkCore.

Inheritors

StorageBackedFeature

Types

Feature.Companion

Properties

name

abstract val name: String

Name of the feature.

Functions

onInitialize

abstract fun onInitialize(appContext: Context)

This method is called during feature initialization. At this stage feature should setup itself.

Parameters
appContext Application context.

onStop

abstract fun onStop()

This method is called during feature de-initialization. At this stage feature should stop itself and release resources held.

Clone this wiki locally