onCreateView

open fun onCreateView(@NonNull inflater: LayoutInflater, @Nullable container: ViewGroup, @Nullable savedInstanceState: Bundle): View

Called to create and return the view hierarchy for this fragment. Creates the PDF document view with configuration settings from the theme.

Return

The View for the fragment's UI, or null.

Parameters

inflater

The LayoutInflater used to inflate views.

container

The parent view that the fragment's UI should be attached to.

savedInstanceState

If non-null, the fragment is being re-constructed from a previous saved state.