Package com.prineside.luaj.mapping.parts
Class LJ_GDX_utils.Clipboard_T.LIP
java.lang.Object
com.prineside.luaj.mapping.InterfaceProxy
com.prineside.luaj.mapping.parts.LJ_GDX_utils.Clipboard_T.LIP
- All Implemented Interfaces:
com.badlogic.gdx.utils.Clipboard
,com.esotericsoftware.kryo.KryoSerializable
- Enclosing class:
- LJ_GDX_utils.Clipboard_T
public static class LJ_GDX_utils.Clipboard_T.LIP
extends InterfaceProxy
implements com.badlogic.gdx.utils.Clipboard
-
Field Summary
Fields inherited from class com.prineside.luaj.mapping.InterfaceProxy
luaObj
-
Method Summary
Modifier and TypeMethodDescriptiongets the current content of the clipboard if it contains text for WebGL app, getting the system clipboard is currently not supported.boolean
Check if the clipboard has contents.void
setContents
(String p1) Sets the content of the system clipboard.Methods inherited from class com.prineside.luaj.mapping.InterfaceProxy
getLuaObj, read, write
-
Method Details
-
getContents
Description copied from interface:com.badlogic.gdx.utils.Clipboard
gets the current content of the clipboard if it contains text for WebGL app, getting the system clipboard is currently not supported. It works only inside the app- Specified by:
getContents
in interfacecom.badlogic.gdx.utils.Clipboard
- Returns:
- the clipboard content or null
-
hasContents
public boolean hasContents()Description copied from interface:com.badlogic.gdx.utils.Clipboard
Check if the clipboard has contents. Recommended to use over getContents() for privacy reasons, if you only want to check if there's something on the clipboard. For instance, calling getContents() on iOS shows a privacy notification since iOS 14, while hasContents() does not.- Specified by:
hasContents
in interfacecom.badlogic.gdx.utils.Clipboard
- Returns:
- true, if the clipboard has contents
-
setContents
Description copied from interface:com.badlogic.gdx.utils.Clipboard
Sets the content of the system clipboard. for WebGL app, clipboard content might not be set if user denied permission, setting clipboard is not synchronous so you can't rely on getting same content just after setting it- Specified by:
setContents
in interfacecom.badlogic.gdx.utils.Clipboard
- Parameters:
p1
- the content
-