public abstract class

GeolocSharingListener

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

Class Overview

Geoloc sharing event listener

Summary

Public Constructors
GeolocSharingListener()
Public Methods
abstract void onDeleted(ContactId contact, Set<String> sharingIds)
Callback called when a delete operation completed that resulted in that one or several geoloc sharings was deleted specified by the sharingIds parameter corresponding to a specific contact.
abstract void onProgressUpdate(ContactId contact, String sharingId, long currentSize, long totalSize)
Callback called during the sharing progress
abstract void onStateChanged(ContactId contact, String sharingId, GeolocSharing.State state, GeolocSharing.ReasonCode reasonCode)
Callback called when the geoloc sharing state changes
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GeolocSharingListener ()

Since: API Level 1.5

Public Methods

public abstract void onDeleted (ContactId contact, Set<String> sharingIds)

Since: API Level 1.5

Callback called when a delete operation completed that resulted in that one or several geoloc sharings was deleted specified by the sharingIds parameter corresponding to a specific contact.

Parameters
contact Contact ID
sharingIds ids of those deleted geoloc sharing

public abstract void onProgressUpdate (ContactId contact, String sharingId, long currentSize, long totalSize)

Since: API Level 1.5

Callback called during the sharing progress

Parameters
contact Contact ID
sharingId ID of geoloc sharing
currentSize Current transferred size in bytes
totalSize Total size to transfer in bytes

public abstract void onStateChanged (ContactId contact, String sharingId, GeolocSharing.State state, GeolocSharing.ReasonCode reasonCode)

Since: API Level 1.5

Callback called when the geoloc sharing state changes

Parameters
contact Contact ID
sharingId ID of geoloc sharing
state State of image sharing
reasonCode Reason code of geoloc sharing state