/** * 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()); } }
/** * 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()); } }
/** * 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()); } }
/** * 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()); } }