Package aero.panasonic.inflight.services
Class InFlight
- java.lang.Object
-
- aero.panasonic.inflight.services.InFlight
-
public class InFlight extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInFlight.Error
-
Constructor Summary
Constructors Constructor Description InFlight()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckCompatibility(Context context, java.lang.String service, java.lang.String moduleVersion, IInFlightCallback inFlightCallback)For internal use only.static java.lang.StringgetSDKVersion()This method is used by client applications to get the current SDK version number.static java.lang.StringgetUserAgentString()static java.lang.StringgetUserAgentString(Context context)voidsetAppId(Context context, java.lang.String appId)You can use an App ID to associate your application to a specific airline.
-
-
-
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 contextappId- - unique application identifier provided to the application.
-
getUserAgentString
public static java.lang.String getUserAgentString()
-
getUserAgentString
public static java.lang.String getUserAgentString(Context context)
-
-