{ "id": "60649", "key": "TIMOB-17", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11210", "name": "Release 0.6.0", "archived": true, "released": true, "releaseDate": "2009-08-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:50:07.000+0000", "created": "2011-04-15T02:22:35.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:50:07.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

Description

\n

The purpose of this API is to create an activity indicator.

\n

Example

\n
\nvar ind = Titanium.UI.createActivityIndicator();\nind.setType(Titanium.UI.ActivityIndicator.DETERMINANT);\nind.setMin(0);\nind.setMax(100);\nind.setPos(0);\nind.show();\n\n// for indeterminant only\nind.hide();\n\nNote: the activity indicator can be set on the toolbar or navbar just like a button\n
\n

API Arguments

\n

id : optional. the HTML element id where the\nactivity indicator is placed

\n

type :\nTitanium.UI.ActivityIndicator.INDETERMINANT or\nTitanium.UI.ActivityIndicator.DETERMINANT

\n

message : optional. Add a message with the\nindicator (e.g., \"loading...\")

\n

min : min value for determinant indicator

\n

max : max value for determinant indicator

\n

pos : current value for determinant\nindicator

\n

API Methods

\n

setMessage : same as message argument

\n

setType : same as type argument

\n

setLocation : same as location argument

\n

setMin : same as min argument

\n

setMax : same as max argument

\n

setPos : change the value of a determinant\nindicator

\n

show : show the indicator

\n

hide : hide the indicator (for indeterminant\nindicators only)

{html}", "attachment": [], "flagged": false, "summary": "API - Titanium.UI.createActivityIndicator", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }