Package com.theoplayer.android.api.util
Interface Logger
-
- All Implemented Interfaces:
public interface LoggerThe Logger API that can be used to gather more information on the player internal behaviour.
Recommended to be only used in debug mode or for specific use cases.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classLogger.Companionpublic interfaceLogger.ListenerListener to receive the log messages along with their respective tags.
Recommended to be only used in debug mode or for specific use cases.
All methods are called from a coroutine with the Dispatchers.Default context.
-
Method Summary
Modifier and Type Method Description abstract UnitenableTags(String tags)Enables logs with the provided tags. abstract UnitenableAllTags()Enables all logs. abstract UnitdisableTags(String tags)Disables logs with the provided tags. abstract UnitdisableAllTags()Disables all logs. abstract UnitaddListener(Logger.Listener listener)Adds a listener to receive the log messages for the enabled tags. abstract UnitremoveListener(Logger.Listener listener)Removes a listener from receiving the log messages. -
-
Method Detail
-
enableTags
abstract Unit enableTags(String tags)
Enables logs with the provided tags.
-
enableAllTags
abstract Unit enableAllTags()
Enables all logs.
-
disableTags
abstract Unit disableTags(String tags)
Disables logs with the provided tags.
-
disableAllTags
abstract Unit disableAllTags()
Disables all logs.
-
addListener
abstract Unit addListener(Logger.Listener listener)
Adds a listener to receive the log messages for the enabled tags.
-
removeListener
abstract Unit removeListener(Logger.Listener listener)
Removes a listener from receiving the log messages.
-
-
-
-