public enum

Viewer.ViewState

extends java.lang.Enum<Viewer.ViewState>

 java.lang.Object

↳java.lang.Enum<Viewer.ViewState>

↳androidx.pdf.viewer.Viewer.ViewState

Overview

The state of the view hierarchy for this Fragment, as exposed by Viewer.mViewState.

Summary

Enum Constants
ERRORThere is no view because this Viewer failed to start up (e.g.
NO_VIEWThe view hierarchy does not exist yet or anymore (e.g.
VIEW_CREATEDThe view hierarchy exists but may be showing no or partial contents.
VIEW_READYThe view hierarchy is ready for prime time: all Views are populated and responding.
Methods
public static Viewer.ViewStatevalueOf(java.lang.String name)

public static Viewer.ViewStatevalues()

from java.lang.Enum<E>clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
from java.lang.ObjectgetClass, notify, notifyAll, wait, wait, wait

Enum Constants

NO_VIEW

The view hierarchy does not exist yet or anymore (e.g. before Viewer.onCreateView(LayoutInflater, ViewGroup, Bundle)).

VIEW_CREATED

The view hierarchy exists but may be showing no or partial contents.

The state as reported by Viewer.mViewState is guaranteed to change to this value after Viewer.onCreateView(LayoutInflater, ViewGroup, Bundle) completes, and when Fragment.getView() returns a non-null View.

VIEW_READY

The view hierarchy is ready for prime time: all Views are populated and responding. This is to be reported by subclasses, when that condition happens (but no sooner than Viewer.onStart()).

This is unrelated to Viewer.onStart(), Fragment.onResume() or Viewer.onEnter(), as the view could be ready but not currently showing because of other factors.

ERROR

There is no view because this Viewer failed to start up (e.g. broken file).

Methods

public static Viewer.ViewState values()

public static Viewer.ViewState valueOf(java.lang.String name)