2 package com.iotivity.service;
4 import android.content.Context;
6 public class RMInterface {
9 // Load RI JNI interface
10 System.loadLibrary("RMInterface");
12 // Load CA JNI interface
13 System.loadLibrary("CAInterface");
16 public native void RMInitialize(Context context);
18 public native void RMTerminate();
20 public native void RMStartListeningServer();
22 public native void RMStartDiscoveryServer();
24 public native void RMRegisterHandler();
26 public native void RMFindResource(String uri);
28 public native void RMSendRequest(String requestUri, int selectedNetwork, int isSecured, int msgType);
30 public native void RMSendNotification(String notification, int selectedNetwork);
32 public native void RMSelectNetwork(int interestedNetwork);
34 public native void RMHandleRequestResponse();