Class AppControl
- java.lang.Object
-
- aero.panasonic.inflight.services.pairing.v1.AppControl
-
public class AppControl extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAppControl.AppRequestsListenerListener interface for handling app requests received from the PED.
-
Constructor Summary
Constructors Constructor Description AppControl(PairingController pairingController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterRequestListener(AppControl.AppRequestsListener appRequestsListener)Registers a listener to receive app-related requests from the PED.voidsendAppStatus(AppStatus appStatus)Sends the application status to the PED.
-
-
-
Method Detail
-
sendAppStatus
public void sendAppStatus(AppStatus appStatus)
Sends the application status to the PED.The app status must be sent in the following scenarios:
- When the app is launched by Interactive
- When an error occurs during the app launch
- When the app quits in seatback
This status information enables the PED to take the appropriate action. For example, if a game launch request is sent from the PED but the game is actually launched by Interactive, the PED can use the status to decide whether to display game controls. In this case, the status ensures that the PED can correctly launch and display the game control interface.
- Parameters:
appStatus- An object that contains details about the app status, including the identifier, application type,AppStatusType, and whether the application is VFS-based.
-
registerRequestListener
public void registerRequestListener(AppControl.AppRequestsListener appRequestsListener)
Registers a listener to receive app-related requests from the PED.The provided
AppControl.AppRequestsListenerwill be notified whenever the PED sends requests such as launching or quitting an app. This allows the interactive to handle incoming requests appropriately.- Parameters:
appRequestsListener- The listener instance that will receive app launch and quit requests from the PED.
-
-