Example #1
0
 /**
  * Returns the sharing ID of the geoloc sharing
  *
  * @return Sharing ID
  * @throws JoynServiceException
  */
 public String getSharingId() throws JoynServiceException {
   Logger.i(TAG, "getSharingId() entry ");
   try {
     return sharingInf.getSharingId();
   } catch (Exception e) {
     throw new JoynServiceException(e.getMessage());
   }
 }
Example #2
0
 /**
  * Aborts the sharing
  *
  * @throws JoynServiceException
  */
 public void abortSharing() throws JoynServiceException {
   Logger.i(TAG, "abortSharing() entry ");
   try {
     sharingInf.abortSharing();
   } catch (Exception e) {
     throw new JoynServiceException(e.getMessage());
   }
 }
Example #3
0
 /**
  * Removes a listener from geoloc sharing
  *
  * @param listener Listener
  * @throws JoynServiceException
  */
 public void removeEventListener(GeolocSharingListener listener) throws JoynServiceException {
   Logger.i(TAG, "removeEventListener() entry " + listener);
   try {
     sharingInf.removeEventListener(listener);
   } catch (Exception e) {
     throw new JoynServiceException(e.getMessage());
   }
 }
Example #4
0
 /**
  * Rejects geoloc sharing invitation
  *
  * @throws JoynServiceException
  */
 public void rejectInvitation() throws JoynServiceException {
   Logger.i(TAG, "rejectInvitation() entry ");
   try {
     sharingInf.rejectInvitation();
   } catch (Exception e) {
     throw new JoynServiceException(e.getMessage());
   }
 }