Class Info


  • public class Info
    extends java.lang.Object
    The Info class provides detailed information about the seat, including cabin class, seat number, hardware information, and additional capabilities such as camera and CapSense availability. It is intended for use in seatback environments only.

    Usage of this class requires the #initService(Context, IInFlightCallback, InFlight) method to be called for proper initialization.

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCabinClass()
      Retrieves the cabin class of the seat, such as "First Class," "Business," or "Economy."
      java.lang.String getModel()
      Retrieves the model of the seatback monitor.
      java.lang.String getOsVersion()
      Retrieves the version of the operating system running on the seatback monitor.
      char getSeatLabel()
      Retrieves the seat label/location within the row, such as 'A', 'B', or 'C.'
      java.lang.String getSeatNumber()
      Retrieves the complete seat number, combining the row number and seat label/location, e.g., "26B" or "2A."
      int getSeatRow()
      Retrieves the seat's row number.
      static void initService​(Context context, IInFlightCallback inFlightCallback, InFlight inFlight)
      Initializes the Info service object and invokes the provided callback upon completion.
      boolean isCameraAvailable()
      Checks whether the camera functionality is available in the seatback monitor.
      boolean isCapsenseAvailable()
      Checks whether CapSense functionality is available in the seatback monitor.
      • 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)
        Initializes the Info service object and invokes the provided callback upon completion. This method must be called before accessing seat-related information.
        Parameters:
        context - the application context, must not be null.
        inFlightCallback - an IInFlightCallback to receive initialization status.
        inFlight - a reference to the InFlight instance, can be null. If null, a new instance will be created internally.
      • getCabinClass

        public java.lang.String getCabinClass()
        Retrieves the cabin class of the seat, such as "First Class," "Business," or "Economy."
        Returns:
        the cabin class as a String.
      • getSeatRow

        public int getSeatRow()
        Retrieves the seat's row number.
        Returns:
        the row number as an int, e.g., 26 or 2.
      • getSeatNumber

        public java.lang.String getSeatNumber()
        Retrieves the complete seat number, combining the row number and seat label/location, e.g., "26B" or "2A."
        Returns:
        the seat number as a String.
      • getSeatLabel

        public char getSeatLabel()
        Retrieves the seat label/location within the row, such as 'A', 'B', or 'C.'
        Returns:
        the seat label as a char.
      • isCameraAvailable

        public boolean isCameraAvailable()
        Checks whether the camera functionality is available in the seatback monitor.
        Returns:
        true if the camera is available; false otherwise.
      • isCapsenseAvailable

        public boolean isCapsenseAvailable()
        Checks whether CapSense functionality is available in the seatback monitor.
        Returns:
        true if CapSense is available; false otherwise.
      • getOsVersion

        public java.lang.String getOsVersion()
        Retrieves the version of the operating system running on the seatback monitor.
        Returns:
        the OS version as a String, e.g., "Android 4.1."
      • getModel

        public java.lang.String getModel()
        Retrieves the model of the seatback monitor.
        Returns:
        the monitor model as a String, e.g., "Elite v3" or "Econ v1."