Class InFlight


  • public class InFlight
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  InFlight.Error  
    • Constructor Summary

      Constructors 
      Constructor Description
      InFlight()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean checkCompatibility​(Context context, java.lang.String service, java.lang.String moduleVersion, IInFlightCallback inFlightCallback)
      For internal use only.
      static java.lang.String getSDKVersion()
      This method is used by client applications to get the current SDK version number.
      static java.lang.String getUserAgentString()  
      static java.lang.String getUserAgentString​(Context context)  
      void setAppId​(Context context, java.lang.String appId)
      You can use an App ID to associate your application to a specific airline.
      • Methods inherited from class java.lang.Object

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

      • InFlight

        public InFlight()
    • Method Detail

      • getSDKVersion

        public static java.lang.String getSDKVersion()
        This method is used by client applications to get the current SDK version number.
        Returns:
        String: Returns the current SDK Version
      • checkCompatibility

        public boolean checkCompatibility​(Context context,
                                          java.lang.String service,
                                          java.lang.String moduleVersion,
                                          IInFlightCallback inFlightCallback)
        For internal use only.
      • setAppId

        public void setAppId​(Context context,
                             java.lang.String appId)
        You can use an App ID to associate your application to a specific airline. The airline then allows or restricts onboard services based on the App ID. The airline can use a single App ID or multiple App IDs, depending on their policies. For example, an airline could assign specific App IDs to various application types, such as one App ID for games and a second ID for maps. If the application is permitted on an airline not associated with an App ID, passengers might have restricted access or no access to the application,depending on the policy set by the airlines. Note: You must request the App ID from the airline.
        Parameters:
        context - - application context
        appId - - unique application identifier provided to the application.
      • getUserAgentString

        public static java.lang.String getUserAgentString()
      • getUserAgentString

        public static java.lang.String getUserAgentString​(Context context)