-
- All Implemented Interfaces:
-
androidx.lifecycle.DefaultLifecycleObserver,androidx.lifecycle.LifecycleObserver
public final class EmojiPackImporter implements DefaultLifecycleObserver
Manages the picking and import of a custom emoji pack. Should always be created when the Activity is created in order to be able to continue the import process, even if the Activity has been destroyed in the meantime (cf. https://developer.android.com/training/basics/intents/result#separate )
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEmojiPackImporter.Companion
-
Constructor Summary
Constructors Constructor Description EmojiPackImporter(ActivityResultRegistry registry, EmojiPackList list, Context context)
-
Method Summary
Modifier and Type Method Description UnitonCreate(LifecycleOwner owner)-
-
Constructor Detail
-
EmojiPackImporter
EmojiPackImporter(ActivityResultRegistry registry, EmojiPackList list, Context context)
- Parameters:
registry- The ActivityResultRegistry to bind to to receive the result of the file pickerlist- The list to later add the emoji pack to
-
-
Method Detail
-
onCreate
Unit onCreate(LifecycleOwner owner)
-
-
-
-