-
public class EmojiPickerPreference.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static EmojiPickerPreference.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final <A extends Context, ActivityResultRegistryOwner, LifecycleOwner> EmojiPickerPreferenceget(A activity, AttributeSet attributeSet)final BooleanonDisplayPreferenceDialog(PreferenceFragmentCompat fragment, Preference preference)A helper method to easily handle emoji preferences. -
-
Method Detail
-
get
final <A extends Context, ActivityResultRegistryOwner, LifecycleOwner> EmojiPickerPreference get(A activity, AttributeSet attributeSet)
-
onDisplayPreferenceDialog
final Boolean onDisplayPreferenceDialog(PreferenceFragmentCompat fragment, Preference preference)
A helper method to easily handle emoji preferences. It can be integrated into the PreferenceFragmentCompat.onDisplayPreferenceDialog method. {@code override fun onDisplayPreferenceDialog(preference: Preference) { if (!EmojiPickerPreference.onDisplayPreferenceDialog(this, preference)) { super.onDisplayPreferenceDialog(preference) } } }
- Parameters:
fragment- The calling fragment which will host the dialogpreference- The preference for which this method has been called.
-
-
-
-