public class

GeolocSharing

extends Object
java.lang.Object
   ↳ com.gsma.services.rcs.sharing.geoloc.GeolocSharing

Class Overview

Geoloc sharing

Summary

Nested Classes
enum GeolocSharing.ReasonCode Reason code  
enum GeolocSharing.State Geoloc sharing state  
Public Methods
void abortSharing()
Aborts the sharing
void acceptInvitation()
Accepts geoloc sharing invitation
RcsService.Direction getDirection()
Returns the direction of the sharing
Geoloc getGeoloc()
Returns the geolocation info
GeolocSharing.ReasonCode getReasonCode()
Returns the reason code of the state of the sharing
ContactId getRemoteContact()
Returns the remote contact identifier
String getSharingId()
Returns the sharing ID of the geoloc sharing
GeolocSharing.State getState()
Returns the state of the sharing
long getTimestamp()
Returns the local timestamp of when the geoloc sharing was initiated for outgoing geoloc sharing or the local timestamp of when the geoloc sharing invitation was received for incoming geoloc sharings.
void rejectInvitation()
Rejects geoloc sharing invitation
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void abortSharing ()

Since: API Level 1.5

Aborts the sharing

Throws
RcsPermissionDeniedException
RcsGenericException
RcsPermissionDeniedException

public void acceptInvitation ()

Since: API Level 1.5

Accepts geoloc sharing invitation

public RcsService.Direction getDirection ()

Since: API Level 1.5

Returns the direction of the sharing

Returns
  • Direction
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public Geoloc getGeoloc ()

Since: API Level 1.5

Returns the geolocation info

Returns
  • Geoloc object
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException
See Also

public GeolocSharing.ReasonCode getReasonCode ()

Since: API Level 1.5

Returns the reason code of the state of the sharing

Returns
  • ReasonCode
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public ContactId getRemoteContact ()

Since: API Level 1.5

Returns the remote contact identifier

Returns
  • ContactId
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public String getSharingId ()

Since: API Level 1.5

Returns the sharing ID of the geoloc sharing

Returns
  • String Sharing ID

public GeolocSharing.State getState ()

Since: API Level 1.5

Returns the state of the sharing

Returns
  • State
Throws
RcsPersistentStorageException
RcsGenericException
RcsGenericException
RcsPersistentStorageException

public long getTimestamp ()

Since: API Level 1.5

Returns the local timestamp of when the geoloc sharing was initiated for outgoing geoloc sharing or the local timestamp of when the geoloc sharing invitation was received for incoming geoloc sharings.

Returns
  • long
Throws
RcsPersistentStorageException
RcsGenericException
RcsPersistentStorageException

public void rejectInvitation ()

Since: API Level 1.5

Rejects geoloc sharing invitation