Pass Object
A Pass Object represents a Pass in iOS.
Here is an example for creating a Pass with callbacks:
var pass1 = new com.kony.Pass();
Return Values
Object - com.kony.Pass
Methods
The com.kony.Pass
class contains the following methods.
The token used to authenticate with the web service.
Syntax
<<PassObject>>.getAuthenticationToken();
Input Parameters
None
Example
var pass1 = pass1.getAuthenticationToken();
Return Values
Return Value | Description |
---|---|
String | The authentication token of Pass |
Platform Availability
- iOS
The localized description of the pass’s kind. You can use this property to provide accessibility information for a UI element that represents a pass, such as a cell in a table view.
Syntax
<<PassObject>>.getLocalizedDescription();
Input Parameters
None
Example
var pass1 = pass1.getLocalizedDescription();
Return Values
Return Value | Description |
---|---|
String | localized description of Pass. |
Platform Availability
- iOS
You can use this property to provide accessibility information for a UI element that represents a pass, such as a cell in a table view.
Syntax
<<PassObject>>.getLocalizedName();
Input Parameters
None
Example
var pass1 = pass1.getLocalizedName();
Return Values
Return Value | Description |
---|---|
String | localized description of Pass. |
Platform Availability
- iOS
Returns the localized value for specified field of the pass.
Syntax
<<PassObject>>.getLocalizedValueForKeyForDeviceLocale();
Input Parameters
Parameter | Description |
---|---|
key [String] - Mandatory | The field's key, as specified in the pass. |
Example
pass1.getLocalizedValueForKeyForDeviceLocale(key); ... var pass1 = pass1.getLocalizedValueForKeyForDeviceLocale(key);
Return Values
Return Value | Description |
---|---|
String | The localized value for the pass’s field. |
Platform Availability
- iOS
The name of the organization that created the pass.
Syntax
<<PassObject>>.getOrganizationName();
Input Parameters
None
Example
var pass1 = pass1.getOrganizationName();
Return Values
Return Value | Description |
---|---|
String | organization name of Pass. |
Platform Availability
- iOS
The pass’s type identifier.
Syntax
<<PassObject>>.getPassTypeIdentifier();
Example
var pass1 = pass1.getPassTypeIdentifier();
Return Values
Return Value | Description |
---|---|
String | The pass’s type identifier. |
Platform Availability
- iOS
The URL that opens the pass in the Passbook app.
Syntax
<<PassObject>>.getPassURL();
Input Parameters
None
Example
var pass1 = pass1.getPassURL();
Return Values
Return Value | Description |
---|---|
String | absolute string of passURL |
Platform Availability
- iOS
A value that uniquely identifies the pass.
Syntax
<<PassObject>>.getSerialNumber();
Input Parameters
None
Example
var pass1 = pass1.getSerialNumber();
Return Values
Return Value | Description |
---|---|
String | The serial number of Pass. |
Platform Availability
- iOS
Developer-specific custom data.
Only available in iOS7 and above.
Syntax
<<PassObject>>.getUserInfo();
Input Parameters
None
Example
var pass1 = pass1.getUserInfo();
Return Values
Return Value | Description |
---|---|
String | userInfo dictionary of Pass. |
Platform Availability
- iOS