StreamerLifeCycleObserver

Add DefaultLifecycleObserver to a streamer.

You will not have to call IStreamer.release when application is destroyed nor to to call IStreamer.stopStream when application goes to background.

To use it, call:

  • lifeCycle.addObserver(StreamerLifeCycleObserver(streamer))

Parameters

streamer

The streamer to observe

Constructors

Link copied to clipboard
constructor(streamer: IStreamer)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open fun onCreate(owner: LifecycleOwner)
Link copied to clipboard
open override fun onDestroy(owner: LifecycleOwner)
Link copied to clipboard
open override fun onPause(owner: LifecycleOwner)
Link copied to clipboard
open fun onResume(owner: LifecycleOwner)
Link copied to clipboard
open fun onStart(owner: LifecycleOwner)
Link copied to clipboard
open fun onStop(owner: LifecycleOwner)