copyToClipboard

abstract fun copyToClipboard(toCopy: String, isSensitive: Boolean): Boolean

Copies the given text to the clipboard.

Return

Returns true if a notification was shown automatically to the user. This happens on some Android versions, and we don't want to double-notify.

Parameters

toCopy

The text to copy.

isSensitive

Whether the text is sensitive or not.