Package 

Interface IDebugManager


  • 
    public interface IDebugManager
    
                        

    Access to debug the SDK in the event additional information is required to diagnose any SDK-related issues.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit addLogListener(ILogListener listener) Add a listener to receive all logging messages the SDK produces.
      abstract Unit removeLogListener(ILogListener listener) Removes a listener added by addLogListener
      abstract LogLevel getLogLevel() The log level the OneSignal SDK should be writing to the Android log.
      abstract Unit setLogLevel(LogLevel logLevel) The log level the OneSignal SDK should be writing to the Android log.
      abstract LogLevel getAlertLevel() The log level the OneSignal SDK should be showing as a modal.
      abstract Unit setAlertLevel(LogLevel alertLevel) The log level the OneSignal SDK should be showing as a modal.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addLogListener

         abstract Unit addLogListener(ILogListener listener)

        Add a listener to receive all logging messages the SDK produces. Useful to capture and send logs to your server. NOTE: All log messages are always passed, logLevel has no effect on this.

      • getLogLevel

         abstract LogLevel getLogLevel()

        The log level the OneSignal SDK should be writing to the Android log. Defaults to LogLevel.WARN. WARNING: This should not be set higher than LogLevel.WARN in a production setting.

      • setLogLevel

         abstract Unit setLogLevel(LogLevel logLevel)

        The log level the OneSignal SDK should be writing to the Android log. Defaults to LogLevel.WARN. WARNING: This should not be set higher than LogLevel.WARN in a production setting.

      • getAlertLevel

         abstract LogLevel getAlertLevel()

        The log level the OneSignal SDK should be showing as a modal. Defaults to LogLevel.NONE. WARNING: This should not be used in a production setting.

      • setAlertLevel

         abstract Unit setAlertLevel(LogLevel alertLevel)

        The log level the OneSignal SDK should be showing as a modal. Defaults to LogLevel.NONE. WARNING: This should not be used in a production setting.