com.samsung.android.sdk.look.cocktailbar

Class SlookCocktailProvider

  • java.lang.Object
    • android.content.BroadcastReceiver
      • com.samsung.android.sdk.look.cocktailbar.SlookCocktailProvider
    • Constructor Summary

      Constructors 
      Constructor and Description
      SlookCocktailProvider()
      Constructor to initialize SlookCocktailProvider.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void onDisabled(android.content.Context context)
      Called in response to the ACTION_COCKTAIL_DISABLED broadcast, which is sent when the Cocktail instance for this provider is disabled in setting or Cocktail-Bar.
      void onEnabled(android.content.Context context)
      Called in response to the ACTION_COCKTAIL_ENABLED broadcast when the Cocktail for this provider is instantiated.
      void onReceive(android.content.Context context, android.content.Intent intent)
      Implements BroadcastReceiver.onReceive(android.content.Context, android.content.Intent) to dispatch calls to the various other methods on SlookCocktailProvider.
      void onUpdate(android.content.Context context, SlookCocktailManager cocktailManager, int[] cocktailIds)
      Called in response to the ACTION_COCKTAIL_UPDATE or ACTION_COCKTAIL_UPDATE_V2 broadcast when this Cocktail provider is being asked to provide CocktailInfo for a Cocktail.
      void onVisibilityChanged(android.content.Context context, int cocktailId, int visibility)
      Called in response to the ACTION_COCKTAIL_VISIBILITY_CHANGED broadcast, which is sent when the visibility of the cocktail is changed.
    • Constructor Detail

      • SlookCocktailProvider

        public SlookCocktailProvider()
        Constructor to initialize SlookCocktailProvider.
        Since:
        1.1.0
    • Method Detail

      • onReceive

        public void onReceive(android.content.Context context,
                              android.content.Intent intent)
        Implements BroadcastReceiver.onReceive(android.content.Context, android.content.Intent) to dispatch calls to the various other methods on SlookCocktailProvider.
        Specified by:
        onReceive in class android.content.BroadcastReceiver
        Parameters:
        context - The Context in which the receiver is running.
        intent - The Intent being received.
        Since:
        1.1.0
      • onUpdate

        public void onUpdate(android.content.Context context,
                             SlookCocktailManager cocktailManager,
                             int[] cocktailIds)
        Called in response to the ACTION_COCKTAIL_UPDATE or ACTION_COCKTAIL_UPDATE_V2 broadcast when this Cocktail provider is being asked to provide CocktailInfo for a Cocktail. Override this method to implement your own Cocktail functionality. If the cocktailId or RemoteViews is not valid, the Cocktail panel will not appear on the cocktail-bar.
        Parameters:
        context - The Context in which this receiver is running.
        cocktailManager - A SlookCocktailManager object you can call SlookCocktailManager.updateCocktail(int, android.widget.RemoteViews) on.
        cocktailIds - The cocktailIds for which an update is needed.
        Since:
        1.1.0
      • onEnabled

        public void onEnabled(android.content.Context context)
        Called in response to the ACTION_COCKTAIL_ENABLED broadcast when the Cocktail for this provider is instantiated. Override this method to implement your own Cocktail functionality.
        Parameters:
        context - The Context in which this receiver is running.
        Since:
        1.1.0
      • onDisabled

        public void onDisabled(android.content.Context context)
        Called in response to the ACTION_COCKTAIL_DISABLED broadcast, which is sent when the Cocktail instance for this provider is disabled in setting or Cocktail-Bar. Override this method to implement your own Cocktail functionality.
        Parameters:
        context - The Context in which this receiver is running.
        Since:
        1.1.0
      • onVisibilityChanged

        public void onVisibilityChanged(android.content.Context context,
                                        int cocktailId,
                                        int visibility)
        Called in response to the ACTION_COCKTAIL_VISIBILITY_CHANGED broadcast, which is sent when the visibility of the cocktail is changed. Override this method to implement your own Cocktail functionality.
        Parameters:
        context - The Context in which this receiver is running.
        cocktailId - The cocktailId that the visibility of the cocktail has been changed.
        visibility - The visibility of the cocktail.
        Since:
        1.1.0