Android
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
Variable | Description |
---|---|