kony.ui.ActionSheet Function
The details of the kony.ui.ActionSheet function, which is part of the kony.ui Namespace, are as follows.

Constructs an ActionSheet
object that represents an iOS Action Sheet.
Syntax
kony.ui.ActionSheet(actionSheetParams)
Input Parameters
actionSheetParams
A JavaScript object containing key-value pairs that define the configuration parameters for the Action Sheet. This object must contain the following keys.
Key | Description |
---|---|
title | A string that specifies the title for the Action Sheet. |
message | A string containing the action sheet's message to display to the user. |
showCompletionCallback | A callback function that is invoked after the display of the action sheet. For details, see the Remarks section below. |
Example
//Creating the Action Sheet Object var actionSheetObject = new kony.ui.ActionSheet({ "title":"Kony Basecamp", "message":"Welcome to Kony Base Camp! Explore. Learn. Develop. Share.", "showCompletionCallback": function(){ } });
Return Values
Returns an ActionSheet
object.
Remarks
The actionSheetParams parameter is an object containing key-value pairs. When your app uses the showCompletionCallback
key, it specifies a callback function that is automatically invoked after your app displays the action sheet. The callback function must have the following signature.
showCompletionCallback();
In an Action Sheet, only one action item can have the style constants.ACTION_ITEM_STYLE_CANCEL
.
Platform Availability
iOS