Package 

Interface IBootstrapService


  • 
    public interface IBootstrapService
    
                        

    Implement and provide this interface as part of service registration to indicate the service wants to be instantiated and its bootstrap function called during the initialization process.

    When IBootstrapService.bootstrap is called, only OneSignal.setAppId have been called during OneSignal.initWithContext.

    This means the following is true:

    When bootstrap there is no guarantee that any other data is available. Typically a bootstrap service must be instantiated immediately and will add their appropriate hooks to then respond to changes in the system.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit bootstrap() Called when the service is to be bootstrap.
      • Methods inherited from class java.lang.Object

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

      • bootstrap

         abstract Unit bootstrap()

        Called when the service is to be bootstrap. The appId and appContext have already been established.