public class UniversiFragmentDelegate extends UniversiContextDelegate
UniversiContextDelegate implementation that can be used within context of Fragment.UniversiActivityDelegate| Modifier and Type | Method and Description |
|---|---|
static UniversiFragmentDelegate |
create(androidx.fragment.app.Fragment fragment)
Creates a new instance of UniversiFragmentDelegate for the given fragment.
|
protected DialogController |
createDialogController()
Invoked to create a new instance of DialogController for the context that uses this delegate.
|
protected void |
onDestroy()
Invoked whenever
UniversiContextDelegate.destroy() is called for this delegate to perform its destroy operation
while this delegate is not yet in destroyed state. |
protected android.content.Context |
requireContext()
Called to obtain context to be used by this delegate.
|
destroy, dismissDialogWithId, dismissXmlDialog, getDialogController, getDialogFactory, isDestroyed, isPaused, isRequestRegistered, isViewCreated, registerRequest, setDialogController, setDialogFactory, setDialogXmlFactory, setPaused, setViewCreated, showDialogWithId, showXmlDialog, unregisterRequest@NonNull public static UniversiFragmentDelegate create(@NonNull androidx.fragment.app.Fragment fragment)
Do not forget to destroy the new delegate via UniversiContextDelegate.destroy() when the fragment is
also destroyed.
fragment - The fragment context in which will be the new delegate used.@NonNull protected android.content.Context requireContext()
UniversiContextDelegaterequireContext in class UniversiContextDelegate@NonNull protected final DialogController createDialogController()
UniversiContextDelegatecreateDialogController in class UniversiContextDelegateprotected void onDestroy()
UniversiContextDelegateUniversiContextDelegate.destroy() is called for this delegate to perform its destroy operation
while this delegate is not yet in destroyed state.onDestroy in class UniversiContextDelegate