-
public final class ActivityExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final ViewgetView()final static UnitstartActivityWithFade(Activity $self, Intent intent)final static UnitstartActivityWithFade(Activity $self, KClass<?> cls)final static BundlemakeFadeAnimation(Activity $self)final static BundlemakeSceneTransitionAnimation(Activity $self, View view)final static <ERROR CLASS>requireView(Activity $self)final static BooleanshareIntentChooser(Activity $self, String uri, String title)final static UnitstartShareChooser(Activity $self, String uri, String title)final static BooleanstartChooser(Activity $self, Intent intent, String title)final static UnitregisterOnSharedPreferenceChangeListener(Activity $self, SharedPreferences.OnSharedPreferenceChangeListener l)final static UnitunregisterOnSharedPreferenceChangeListener(Activity $self, SharedPreferences.OnSharedPreferenceChangeListener l)final static <ERROR CLASS>setToolbarIcon(AppCompatActivity $self, @DrawableRes() Integer resId)final static NavControllerfindNavControllerByFragment(AppCompatActivity $self, @IdRes() Integer fragmentId)When creating the NavHostFragment using FragmentContainerView or if manually adding the NavHostFragment to your activity via a FragmentTransaction, attempting to retrieve the NavController in onCreate() of an Activity via Navigation.findNavController(Activity, @IdRes int) will fail. final static UnithideSystemBars(Activity $self)final static UnitshowSystemBars(Activity $self)-
-
Method Detail
-
startActivityWithFade
final static Unit startActivityWithFade(Activity $self, Intent intent)
-
startActivityWithFade
final static Unit startActivityWithFade(Activity $self, KClass<?> cls)
-
makeFadeAnimation
final static Bundle makeFadeAnimation(Activity $self)
-
makeSceneTransitionAnimation
final static Bundle makeSceneTransitionAnimation(Activity $self, View view)
-
requireView
final static <ERROR CLASS> requireView(Activity $self)
-
shareIntentChooser
final static Boolean shareIntentChooser(Activity $self, String uri, String title)
-
startShareChooser
final static Unit startShareChooser(Activity $self, String uri, String title)
-
startChooser
final static Boolean startChooser(Activity $self, Intent intent, String title)
-
registerOnSharedPreferenceChangeListener
final static Unit registerOnSharedPreferenceChangeListener(Activity $self, SharedPreferences.OnSharedPreferenceChangeListener l)
-
unregisterOnSharedPreferenceChangeListener
final static Unit unregisterOnSharedPreferenceChangeListener(Activity $self, SharedPreferences.OnSharedPreferenceChangeListener l)
-
setToolbarIcon
final static <ERROR CLASS> setToolbarIcon(AppCompatActivity $self, @DrawableRes() Integer resId)
-
findNavControllerByFragment
final static NavController findNavControllerByFragment(AppCompatActivity $self, @IdRes() Integer fragmentId)
When creating the NavHostFragment using FragmentContainerView or if manually adding the NavHostFragment to your activity via a FragmentTransaction, attempting to retrieve the NavController in onCreate() of an Activity via Navigation.findNavController(Activity, @IdRes int) will fail. You should retrieve the NavController directly from the NavHostFragment instead.
-
hideSystemBars
final static Unit hideSystemBars(Activity $self)
-
showSystemBars
final static Unit showSystemBars(Activity $self)
-
-
-
-