|Class||public class CardCloseEvent|
CardCloseEventis dispatched by the
InvokeManagerwhen an invoked card is closed for any reason.
The card can be closed if the user cancels the card or selects an item. The reason is specified by the
|BlackBerry 10 Version: 10.0.0|
|Found in: QNXDevice.ane|
|data : String|
[read-only] The data that is returned from the card.
|mimeType : String|
[read-only] The mime type of the data that was returned.
|reason : String|
[read-only] The reason the card closed.
CardCloseEvent(type:String, reason:String, mimeType:String = null, data:String = null)
Creates a CardCloseEvent.
|CARD_CLOSED : String = cardClosed|
[static] Event type dispatched whent the card is closed.
The data that is returned from the card.
Because the data that is returned can be encoded in number of different types, it is the responsibility of the application developer to decode the data.
For example, if the user was selecting an image or other binary object, the data will be encoded as Base64 and applications developers should use the
qnx.crypto.Base64 class to decode it.
It may also be a complex object, which is encoded as JSON. In this case application developers should use the top level
JSON class to decode the data.
|public function get data():String|
The mime type of the data that was returned.
|public function get mimeType():String|
The reason the card closed.
|public function get reason():String|
|public function CardCloseEvent(type:String, reason:String, mimeType:String = null, data:String = null)|
|public static const CARD_CLOSED:String = cardClosed|
Event type dispatched whent the card is closed.
The CardCloseEvent.CARD_CLOSED constant defines the value of the
type property of the event object for an
The properties of the event object have the following values:
|The object that is actively processing the Event object with an event listener.|
|The data sent from the card when it was closed.|
|The mime-type of the data returned with the event.|
|The reason the card was closed.|