O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

FragmentHostCallback

abstract class FragmentHostCallback<E : Any!> : FragmentContainer
kotlin.Any
   ↳ androidx.fragment.app.FragmentContainer
   ↳ androidx.fragment.app.FragmentHostCallback

Integration points with the Fragment host.

Fragments may be hosted by any object; such as an Activity. In order to host fragments, implement FragmentHostCallback, overriding the methods applicable to the host.

FragmentManager changes its behavior based on what optional interfaces your FragmentHostCallback implements. This includes the following:

Summary

Public constructors
<init>(@NonNull context: Context, @NonNull handler: Handler, windowAnimations: Int)

Public methods
open Unit
onDump(@NonNull prefix: String, @Nullable fd: FileDescriptor?, @NonNull writer: PrintWriter, @Nullable args: Array<String!>?)

Print internal state into the given stream.

open View?

abstract E?

Return the object that's currently hosting the fragment.

open LayoutInflater

Return a LayoutInflater.

open Int

Return the window animations.

open Boolean

open Boolean

Return true if there are window animations.

open Unit
onRequestPermissionsFromFragment(@NonNull fragment: Fragment, @NonNull permissions: Array<String!>, requestCode: Int)

Requests permissions from the given fragment.

open Boolean
onShouldSaveFragmentState(@NonNull fragment: Fragment)

Return true if the fragment's state needs to be saved.

open Boolean

Checks whether to show permission rationale UI from a fragment.

open Unit
onStartActivityFromFragment(@NonNull fragment: Fragment, intent: Intent!, requestCode: Int)

Starts a new Activity from the given fragment.

open Unit
onStartActivityFromFragment(@NonNull fragment: Fragment, intent: Intent!, requestCode: Int, @Nullable options: Bundle?)

Starts a new Activity from the given fragment.

open Unit
onStartIntentSenderFromFragment(@NonNull fragment: Fragment, intent: IntentSender!, requestCode: Int, @Nullable fillInIntent: Intent?, flagsMask: Int,