@Emits(events={"seekTo","activityCreated","activityDestroyed","activityPaused","activityRestarted","activityResumed","activitySaveInstanceState","activityStarted","activityStopped","configurationChanged","fragmentActivityCreated","fragmentCreatedView","fragmentDestroyed","fragmentDestroyedView","fragmentDetached","fragmentPaused","fragmentResumed","fragmentSaveInstanceState","fragmentStarted","fragmentStopped","fragmentViewStateRestored"}) @ListensFor(events={"activityDestroyed","fragmentDestroyedView"}) public class LifecycleUtil extends AbstractComponent
Modifier and Type | Field and Description |
---|---|
BaseVideoView |
baseVideoView |
static java.lang.String |
POSITION |
static java.lang.String |
TAG |
static java.lang.String |
VIDEO_HEIGHT |
static java.lang.String |
VIDEO_WIDTH |
static java.lang.String |
WAS_PLAYING |
eventEmitter, listenerTokens
Constructor and Description |
---|
LifecycleUtil(BaseVideoView baseVideoView) |
Modifier and Type | Method and Description |
---|---|
void |
activityOnDestroy() |
void |
activityOnPause() |
void |
activityOnResume() |
void |
activityOnSaveInstanceState(android.os.Bundle bundle) |
void |
activityOnStart() |
void |
activityOnStop() |
void |
fragmentOnDestroy() |
void |
fragmentOnPause() |
void |
fragmentOnResume() |
void |
fragmentOnSaveInstanceState(android.os.Bundle bundle) |
void |
fragmentOnStart() |
void |
fragmentOnStop() |
void |
onActivityCreated(android.os.Bundle savedInstanceState) |
void |
onConfigurationChanged(android.content.res.Configuration configuration) |
void |
onCreate(android.os.Bundle savedInstanceState,
android.app.Activity activity) |
void |
onCreateView(android.os.Bundle savedInstanceState,
java.lang.Object fragment) |
void |
onDestroyView() |
void |
onDetach() |
void |
onRestart() |
void |
onViewStateRestored(android.os.Bundle savedInstanceState) |
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
public static final java.lang.String TAG
public static final java.lang.String POSITION
public static final java.lang.String WAS_PLAYING
public static final java.lang.String VIDEO_WIDTH
public static final java.lang.String VIDEO_HEIGHT
public BaseVideoView baseVideoView
public LifecycleUtil(BaseVideoView baseVideoView)
public void onConfigurationChanged(android.content.res.Configuration configuration)
public void onActivityCreated(android.os.Bundle savedInstanceState)
public void onCreate(android.os.Bundle savedInstanceState, android.app.Activity activity)
public void onCreateView(android.os.Bundle savedInstanceState, java.lang.Object fragment)
public void activityOnStart()
public void fragmentOnStart()
public void activityOnPause()
public void fragmentOnPause()
public void activityOnResume()
public void fragmentOnResume()
public void onRestart()
public void activityOnDestroy()
public void fragmentOnDestroy()
public void onDestroyView()
public void onDetach()
public void activityOnStop()
public void fragmentOnStop()
public void activityOnSaveInstanceState(android.os.Bundle bundle)
public void fragmentOnSaveInstanceState(android.os.Bundle bundle)
public void onViewStateRestored(android.os.Bundle savedInstanceState)