1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 18:29:23 +02:00

tap zones API implementation (not tested yet)

This commit is contained in:
Nikolay Pultsin 2012-05-23 04:55:24 +01:00
parent 1e2aaf281d
commit e2bb59de31
8 changed files with 118 additions and 73 deletions

View file

@ -346,6 +346,10 @@ public class ApiClientImplementation implements ServiceConnection, Api, ApiMetho
return requestStringList(LIST_TAPZONES, EMPTY_PARAMETERS);
}
public String getCurrentTapZone() throws ApiException {
return requestString(GET_CURRENT_TAPZONE, EMPTY_PARAMETERS);
}
public int getTapZoneHeight(String name) throws ApiException {
return requestInt(GET_TAPZONE_HEIGHT, envelope(name));
}
@ -354,29 +358,29 @@ public class ApiClientImplementation implements ServiceConnection, Api, ApiMetho
return requestInt(GET_TAPZONE_WIDTH, envelope(name));
}
public String getTapZoneAction(String name, int v, int h, boolean longPress) throws ApiException {
public String getTapZoneAction(String name, int h, int v, boolean singleTap) throws ApiException {
return requestString(GET_TAPZONE_ACTION, new ApiObject[] {
ApiObject.envelope(name),
ApiObject.envelope(v),
ApiObject.envelope(h),
ApiObject.envelope(longPress)
ApiObject.envelope(v),
ApiObject.envelope(singleTap)
});
}
public void createTapZone(String name, int height, int width) throws ApiException {
public void createTapZone(String name, int width, int height) throws ApiException {
request(CREATE_TAPZONE, new ApiObject[] {
ApiObject.envelope(name),
ApiObject.envelope(height),
ApiObject.envelope(width)
ApiObject.envelope(width),
ApiObject.envelope(height)
});
}
public void setTapZoneAction(String name, int v, int h, boolean longPress, String action) throws ApiException {
public void setTapZoneAction(String name, int h, int v, boolean singleTap, String action) throws ApiException {
request(SET_TAPZONE_ACTION, new ApiObject[] {
ApiObject.envelope(name),
ApiObject.envelope(v),
ApiObject.envelope(h),
ApiObject.envelope(longPress),
ApiObject.envelope(v),
ApiObject.envelope(singleTap),
ApiObject.envelope(action)
});
}