These docs are for v1.0. Click to read the latest docs for v2.0.

Android implementation

Android

Android Flight Number Screen

1080

Android Flight Number Screen

Android example

// launching example
val intent = AirportActivity.Builder.builder.build(this)
startActivityForResult(intent, FlightCodes.REQ_CODE)

// result example
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
    if (resultCode == RESULT_OK && requestCode == FlightCodes.REQ_CODE) {
        val flightDetails = data?.getParcelableExtra<FlightDetails>(FlightCodes.FLIGHT_DETAILS)
    }
    super.onActivityResult(requestCode, resultCode, data)
}

Builder variables

VariableDescription