DroidScript : methods

Methods act upon objects. They change properties of that object. And what's an object then? In short: the things you can touch on screen.
The methods are sorted alphabetically. Not by functiongroup or by (parent) object. The kist is just an indication of the available methods. If you see the name of the method, you get an idea if it is valid for your object.

  1. AddChild (child)
  2. AddItem (title, body, image)
  3. Animate (type, callback)
  4. AutoCapture (folder, fileName, maxCount)
  5. Back ()
  6. CanGoBack ()
  7. CanGoForward ()
  8. Cancel (id)
  9. Clear ()
  10. ClearHistory ()
  11. Close ()
  12. CreateImage (fileName, callback)
  13. DestroyChild (child)
  14. Download (sourceURI, destDir)
  15. DrawArc (x1, y1, x2, y2, start, sweep)
  16. DrawCircle (x, y, radius)
  17. DrawImage (image, x, y, width, height, angle)
  18. DrawImageMtx (image, matrix)
  19. DrawLine (x1, y1, x2, y2)
  20. DrawPoint (x, y)
  21. DrawRectangle (x1, y1, x2, y2)
  22. DrawSprite (sheet, sx, sy, sw, sh, dx, dy, dw, dh)
  23. DrawText (text, x, y)
  24. Execute (text)
  25. FindFaces (maxFaces)
  26. Focus ()
  27. Forward ()
  28. GetAbsHeight ()
  29. GetAbsWidth ()
  30. GetBearingTo (lattitude, longitude)
  31. GetCameraCount ()
  32. GetChecked ()
  33. GetColorEffects ()
  34. GetContext ()
  35. GetCursorLine ()
  36. GetCursorPos ()
  37. GetDistanceTo (lattitude, longitude)
  38. GetDuration ()
  39. GetHeight ()
  40. GetHtml ()
  41. GetImageHeight ()
  42. GetImageWidth ()
  43. GetLineCount ()
  44. GetLineStart (lineNum)
  45. GetLineTop (lineNum)
  46. GetList (delimeter)
  47. GetMaxLines ()
  48. GetPictureSizes ()
  49. GetPixelData (format, left, top, width, height)
  50. GetPosition ()
  51. GetProgress ()
  52. GetRMS ()
  53. GetScrollX ()
  54. GetScrollY ()
  55. GetSelectedText ()
  56. GetSelectionEnd ()
  57. GetSelectionStart ()
  58. GetText ()
  59. GetTextSize (mode)
  60. GetType ()
  61. GetValue ()
  62. GetVisibility ()
  63. GetWidth ()
  64. InsertText (text, start, end)
  65. IsComplete ()
  66. IsLooping ()
  67. IsPlaying ()
  68. IsReady ()
  69. LoadHtml (html, baseFolder, options)
  70. LoadUrl (url, options)
  71. MotionMosaic (xtiles, ytiles, sensitivity, minPeriod, imageObj)
  72. Move (x, y)
  73. Notify (id)
  74. Pause ()
  75. Play ()
  76. Recognize ()
  77. Redo ()
  78. RemoveChild (child)
  79. RemoveItem (title)
  80. Render ()
  81. ReplaceText (text, start, end)
  82. ReportColors (list, callback, sampSize, maxRate)
  83. Reset ()
  84. Rotate (angle, pivotX, pivotY)
  85. Save (fileName)
  86. Scale (x, y)
  87. ScrollBy (x, y)
  88. ScrollTo (x, y)
  89. ScrollToItem (name, body)
  90. SeekTo (seconds)
  91. SelectItem (item)
  92. SelectItem (name, body, scrollTo)
  93. SelectItemByIndex (index, scroll)
  94. SetAlpha (alpha)
  95. SetAutoUpdate (onoff)
  96. SetBackColor (colorCode)
  97. SetBackGradient (color1, color2, color3)
  98. SetBackGradientRadial (x, y, r, color1, color2, color3)
  99. SetBackground (imageFile, options)
  100. SetChecked (checked)
  101. SetColor (colorCode)
  102. SetColorEffect (effect)
  103. SetCursorPos (pos)
  104. SetDivider (height, color)
  105. SetEllipsize (mode)
  106. SetEllipsize1 (mode)
  107. SetEllipsize2 (mode)
  108. SetFile (fileName)
  109. SetFile (file)
  110. SetFlash (onoff)
  111. SetFocusMode (mode)
  112. SetFontFile (file)
  113. SetHiTextColor1 (colorCode)
  114. SetHiTextColor2 (colorCode)
  115. SetHint (text)
  116. SetHtml (html)
  117. SetImage (fileName, width, height)
  118. SetItem (title, newTitle, newBody, newImage)
  119. SetLargeImage (file)
  120. SetLights (color, onMs, offMs)
  121. SetLineWidth (width)
  122. SetList (list)
  123. SetList (list, delimeter)
  124. SetLooping (loop)
  125. SetMargins (left, top, right, bottom)
  126. SetMaxRate (ms)
  127. SetMessage (ticker
  128. title, text)
  129. SetOnChange (callback)
  130. SetOnClick (callback)
  131. SetOnComplete (callback)
  132. SetOnError (callback)
  133. SetOnFocus (callback)
  134. SetOnLoad (callback)
  135. SetOnLongTouch (callback)
  136. SetOnMotion (callback)
  137. SetOnPicture (callback)
  138. SetOnProgress (callback)
  139. SetOnReady (callback)
  140. SetOnResult (callback)
  141. SetOnSeekDone (callback)
  142. SetOnTouch (callback)
  143. SetOnTouchDown (callback)
  144. SetOnTouchUp (callback)
  145. SetOrientation (orient)
  146. SetPadding (left, top, right, bottom)
  147. SetPaintColor (colorCode)
  148. SetPaintStyle (style)
  149. SetPictureSize (width, height)
  150. SetPosition (left, top, width, height)
  151. SetPreviewImage (imageObj)
  152. SetRange (range)
  153. SetRate(seconds)
  154. SetScale (width, height)
  155. SetSelection (start, stop)
  156. SetSize (width, height)
  157. SetSound (onoff)
  158. SetText (text)
  159. SetTextColor (colorCode)
  160. SetTextColor1 (colorCode)
  161. SetTextColor2 (colorCode)
  162. SetTextMargins (left, top, right, bottom)
  163. SetTextShadow (radius, dx, dy, color)
  164. SetTextShadow1 (radius, dx, dy, color)
  165. SetTextShadow2 (radius, dx, dy, color)
  166. SetTextSize (size)
  167. SetTouchable (touchable)
  168. SetValue (value)
  169. SetVisibility (visibility)
  170. SetVolume (left, right)
  171. Skew (x, y)
  172. Start ()
  173. StartPreview ()
  174. Stop ()
  175. StopPreview ()
  176. Stream (ip, port, quality, fps, mtu)
  177. TakePicture (fileName)
  178. Transform (matrix)
  179. Undo ()
  180. Update ()
That's close to 200 methods. Yes, we used to create our own methods, when we still programmed serious tasks on serious hardware. Yes, programming these methods was the fun part. No. I feel no need to go back to that time and restart inventing the next wheel, when Droidscript did it all for me.

Page created 26 August, 2016 and