Class Additional


  • public class Additional
    extends Sync

    Package Starting Point - The Additional, a component of the User module.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String keyName, java.lang.String value)
      Add a additional key with a key value
      java.util.Map<java.lang.String,​java.lang.String> get()
      Get all the additional key values.
      java.lang.String get​(java.lang.String keyName)
      Get additional key associate with keyName.
      static void initService​(Context context, IInFlightCallback inFlightCallback, InFlight inFlight)
      This API is the starting point for Additional -- Initializes the service object and returns the object with the IInFlightCallback.
      void remove​(java.lang.String keyName)
      Remove additional key associate with keyName.
      void setConflictStrategy​(ConflictStrategy strategy)
      Sets the strategy for resolving conflicts.
      void setSyncListener​(Sync.SyncListener syncListener)
      Sets a listener to listen for the syncronization updates.
      void synchronize()
      Triggers the synchronization.Create new playlist with nameCreate new playlist with name
      • Methods inherited from class aero.panasonic.inflight.services.user.v2.Sync

        getConflicts
      • Methods inherited from class java.lang.Object

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

      • initService

        public static void initService​(Context context,
                                       IInFlightCallback inFlightCallback,
                                       InFlight inFlight)
        This API is the starting point for Additional -- Initializes the service object and returns the object with the IInFlightCallback.
        Parameters:
        context - Provides access to resources and classes to initialize the object.
        inFlightCallback - IInFlightCallback Returns the instance or error message.
        inFlight - Initializes an InFlight instance.
        Example:
         Additional.initService(context, inflightCallbackListener);
         

        public void onInitServiceComplete(Object serviceObj,String serviceName) { if(serviceName.equals(InFlightServices.ADDITIONAL_V2_SERVICE.getServiceName())) { } }

      • add

        public void add​(java.lang.String keyName,
                        java.lang.String value)
        Add a additional key with a key value
        Parameters:
        keyName - Key name .
        value - Key value.

      • remove

        public void remove​(java.lang.String keyName)
        Remove additional key associate with keyName.
        Parameters:
        keyName - additiona; setting key.
      • get

        public java.lang.String get​(java.lang.String keyName)
        Get additional key associate with keyName.
        Parameters:
        keyName - additonal key.
        Returns:
      • get

        public java.util.Map<java.lang.String,​java.lang.String> get()
        Get all the additional key values.
        Returns:
      • setSyncListener

        public void setSyncListener​(Sync.SyncListener syncListener)
        Description copied from class: Sync
        Sets a listener to listen for the syncronization updates.
        Overrides:
        setSyncListener in class Sync
        Parameters:
        syncListener - Sync.SyncListener callback invoked indicating the result of sync operation performed.
      • synchronize

        public void synchronize()
        Description copied from class: Sync
        Triggers the synchronization.Create new playlist with nameCreate new playlist with name
        Overrides:
        synchronize in class Sync