Class SystemServiceV1


  • public class SystemServiceV1
    extends java.lang.Object

    Package Starting Point - The SystemServiceV1 provides a way to get information about a particular service and whether the service is enabled or disabled temporarily and/or the service is blocked for usage for the flight.



    A good example would be blocking a particular feature on an interactive and/or portal. The GUI can query for the service state, and decide on feature availability.
    • Field Detail

      • SDK_VERSION

        public static final java.lang.String SDK_VERSION
    • Method Detail

      • initService

        public static void initService​(Context context,
                                       IInFlightCallback inFlightCallback,
                                       InFlight inFlight)
        Initialize a CatalogDataV1 object and return the object with the IInFlightCallback.
        Parameters:
        context - : provide a Context to initialize the object.
        inFlightCallback - : IInFlightCallback will be used to return the instance or providing the error message.
        inFlight - : provide an InFlight instance to initialize
      • getAvailableServicesList

        public java.util.List<SystemServiceV1.SystemServiceInfo> getAvailableServicesList()
        This api can be used to get the list of all available services on headend.SystemServiceV1.AvailableServicesListChangedListener can be used to capture change events to the available services.
        Example:
         SystemServiceV1.initService(activity, inflightCallbackListener, new InFlight());
         

        public void onInitServiceComplete(Object service,String serviceName) { if (service instanceof SystemServiceV1) { mSystemServiceInfoV1 = (SystemServiceInfoV1) service; List< SystemServiceInfo > availableServices = mSystemServiceInfoV1.getAvailableServicesList(); } }

      • getSeatServicesList

        public java.util.List<SystemServiceV1.SystemServiceInfo> getSeatServicesList()
        This api can be used to get a subset of available services list, returning services that are specific to seat.
        Example:
         SystemServiceV1.initService(activity, inflightCallbackListener, new InFlight());
         

        public void onInitServiceComplete(Object service,String serviceName) { if (service instanceof SystemServiceV1) { mSystemServiceInfoV1 = (SystemServiceInfoV1) service; List< SystemServiceInfo > seatServices = mSystemServiceInfoV1.getSeatServicesList(); } }