The getObjectService Method gets the current instance of the object service. The getObjectService method is invoked on the SDK instance; init must run successfully before invoking this method.
getObjectService(String serviceName)
ObjectService Instance
| Input Parameter | Type | Description | Required |
|---|---|---|---|
| servicename | String | Name of the object service | Yes |
KonyClient client = new KonyClient();
client.initAsync(getApplicationContext(), < appkey > , < appSecret > , < serviceUrl > , new InitCallback() {
@Override
public void onSuccess(JSONObject serviceDoc) {
kony.print("Init Success");
ObjectService objSVC = client.getObjectService( < servicename > );
}
@Override
public void onFailure(KonyException konyException) {
kony.print("Init failed");
}
});
| Copyright © 2019 Kony, Inc. All rights reserved. |