public var icon:int = -1
See also
public var iconBitmap:BitmapData
See also
public var identifier:String
See also
public var subtitle:String
See also
public var title:String
See also
type:String
Implementation public function get type():String
public function set type(value:String):void
public var userInfo:Object
See also
userInfoJSON:String
[read-only]
Returns JSON string representation of the userInfo
Implementation public function get userInfoJSON():String
public function ApplicationShortcut(identifier:String, title:String, subtitle:String, icon:int = -1, userInfo:Object = null)
Class constructor
Parameters | identifier:String |
|
| title:String |
|
| subtitle:String |
|
| icon:int (default = -1 )
|
|
| userInfo:Object (default = null )
|
public function setIcon(icon:int):ApplicationShortcut
The icon type (optional)
Currently this extension only supports the built-in iOS system icons
Supported iOS Only
Parameters
ReturnsSee also
public function setIconBitmap(bitmap:BitmapData):ApplicationShortcut
Parameters
Returns public function setIdentifier(identifier:String):ApplicationShortcut
Unique identifier for the type of shortcut (required)
We recommend using com.domain.app.MyShortcut
or similar.
Parameters
| identifier:String — The unique identifier string for this shortcut
|
Returns public function setSubtitle(value:String):ApplicationShortcut
Subtitle text for the shortcut item (optional)
This represents the subtitle field on iOS and the long label field on Android.
This can be longer than the title but we advise it should be kept to less than 25 characters.
Parameters
| value:String — The subtitle / long label to be used for the shortcut
|
Returns public function setTitle(value:String):ApplicationShortcut
Main title text for the shortcut item (required)
This represents the title field on iOS and the short label on Android.
This should be kept to a minimum number of characters and will be trimmed to 10 characters on Android.
Parameters
| value:String — The title / short label to be used for the shortcut
|
Returns public function setUserInfo(data:Object):ApplicationShortcut
Custom data to be attached to the shortcut item (optional)
This data will be returned when the shortcut is used along with the identifier
.
Note: It should only consist of primitive data types
Parameters
| data:Object — A data Object to attach to this shortcut
|
Returns public function validate():Boolean
Returns
Wed Jan 18 2023, 06:38 PM +10:00