Package com.brightcove.player.util
Class LifecycleUtil
java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.player.util.LifecycleUtil
- All Implemented Interfaces:
Component
@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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
void
void
activityOnSaveInstanceState
(android.os.Bundle bundle) void
void
void
void
void
void
fragmentOnSaveInstanceState
(android.os.Bundle bundle) void
void
void
onActivityCreated
(android.os.Bundle savedInstanceState) void
onActivityDestroyed
(android.app.Activity activity) void
onConfigurationChanged
(android.content.res.Configuration configuration) void
onCreate
(android.os.Bundle savedInstanceState, android.app.Activity activity) void
onCreateView
(android.os.Bundle savedInstanceState, Object fragment) void
void
onDetach()
void
void
onViewStateRestored
(android.os.Bundle savedInstanceState) Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Field Details
-
TAG
-
POSITION
- See Also:
-
WAS_PLAYING
- See Also:
-
VIDEO_WIDTH
- See Also:
-
VIDEO_HEIGHT
- See Also:
-
baseVideoView
-
-
Constructor Details
-
LifecycleUtil
-
-
Method Details
-
onConfigurationChanged
public void onConfigurationChanged(android.content.res.Configuration configuration) -
onActivityCreated
public void onActivityCreated(android.os.Bundle savedInstanceState) -
onCreate
public void onCreate(android.os.Bundle savedInstanceState, android.app.Activity activity) -
onCreateView
-
activityOnStart
public void activityOnStart() -
fragmentOnStart
public void fragmentOnStart() -
activityOnPause
public void activityOnPause() -
fragmentOnPause
public void fragmentOnPause() -
activityOnResume
public void activityOnResume() -
fragmentOnResume
public void fragmentOnResume() -
onRestart
public void onRestart() -
activityOnDestroy
Deprecated. -
onActivityDestroyed
public void onActivityDestroyed(android.app.Activity activity) -
fragmentOnDestroy
public void fragmentOnDestroy() -
onDestroyView
public void onDestroyView() -
onDetach
public void onDetach() -
activityOnStop
public void activityOnStop() -
fragmentOnStop
public void fragmentOnStop() -
activityOnSaveInstanceState
public void activityOnSaveInstanceState(android.os.Bundle bundle) -
fragmentOnSaveInstanceState
public void fragmentOnSaveInstanceState(android.os.Bundle bundle) -
onViewStateRestored
public void onViewStateRestored(android.os.Bundle savedInstanceState)
-