Clipboard

Clipboard API

API for working with device’s Clipboard

Methods

clear
()

clear Clipboard

Synchronous Return:

  • Void

Method Access:

  • Class Method: This method can only be accessed via the API class object.
    • JavaScript: Rho.Clipboard.clear()
    • Ruby: Rho::Clipboard.clear()
getText
()

return text contain in Clipboard

Synchronous Return:

  • STRING

Method Access:

  • Class Method: This method can only be accessed via the API class object.
    • JavaScript: Rho.Clipboard.getText()
    • Ruby: Rho::Clipboard.getText()
hasText
()

return true if Clipboard contain some text

Synchronous Return:

  • BOOLEAN

Method Access:

  • Class Method: This method can only be accessed via the API class object.
    • JavaScript: Rho.Clipboard.hasText()
    • Ruby: Rho::Clipboard.hasText()
setText
(STRING text)

put text to Clipboard

Parameters

  • text : STRING

Synchronous Return:

  • Void

Method Access:

  • Class Method: This method can only be accessed via the API class object.
    • JavaScript: Rho.Clipboard.setText(STRING text)
    • Ruby: Rho::Clipboard.setText(STRING text)