diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2015-01-12 19:48:33 +0900 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-01-16 13:18:26 +0100 |
commit | 08d711171b5c5a8bbc80c3ebb9470bcf4058f113 (patch) | |
tree | d713bccb0d97ce1b9d40114f61366572653ed51b /android/Bootstrap | |
parent | 2d92cfd38eb89fdf527a00754eb97d7b49f08ada (diff) |
android: comments for new interfaces and methods
Change-Id: I742e232b3a9994f82423bc4bdfa1a5b656f8af87
Diffstat (limited to 'android/Bootstrap')
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/kit/Document.java | 8 | ||||
-rw-r--r-- | android/Bootstrap/src/org/libreoffice/kit/Office.java | 7 |
2 files changed, 15 insertions, 0 deletions
diff --git a/android/Bootstrap/src/org/libreoffice/kit/Document.java b/android/Bootstrap/src/org/libreoffice/kit/Document.java index 10d0a0c94982..4c791cb2f2fc 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/Document.java +++ b/android/Bootstrap/src/org/libreoffice/kit/Document.java @@ -85,7 +85,15 @@ public class Document { public native void initializeForRendering(); + /** + * Callback to retrieve messages from LOK + */ public interface MessageCallback { + /** + * Invoked when a message is retrieved from LOK + * @param signalNumber - signal type / number + * @param payload - retrieved for the signal + */ void messageRetrieved(int signalNumber, String payload); } diff --git a/android/Bootstrap/src/org/libreoffice/kit/Office.java b/android/Bootstrap/src/org/libreoffice/kit/Office.java index 8759e85fe990..25861c92abfc 100644 --- a/android/Bootstrap/src/org/libreoffice/kit/Office.java +++ b/android/Bootstrap/src/org/libreoffice/kit/Office.java @@ -12,6 +12,8 @@ package org.libreoffice.kit; import java.nio.ByteBuffer; public class Office { + public static final int KEY_PRESS = 0; + public static final int KEY_RELEASE = 1; private ByteBuffer handle; @@ -32,6 +34,11 @@ public class Office { return document; } + /** + * Post a key event to LibreOffice. + * @param type - type of key event + * @param code - key event code + */ public native void postKeyEvent(int type, int code); public native void destroy(); |