public class

Capabilities

extends Object
implements Parcelable
java.lang.Object
   ↳ com.gsma.services.rcs.capability.Capabilities

Class Overview

Capabilities of a contact. This class encapsulates the different capabilities which may be supported by the local user or a remote contact.

Summary

Constants
int CAPABILITY_FILE_TRANSFER Indicates the file transfer capability is supported.
int CAPABILITY_GEOLOC_PUSH Indicates the geoloc push capability is supported.
int CAPABILITY_IM Indicates the IM capability is supported.
int CAPABILITY_IMAGE_SHARING Indicates the image sharing capability is supported.
int CAPABILITY_VIDEO_SHARING Indicates the video sharing capability is supported.
[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Methods
Set<String> getSupportedExtensions()
Gets the set of supported extensions
long getTimestamp()
Timestamp of the last capability response (in milliseconds)
boolean hasCapabilities(int capabilities)
Tests for the support of capabilities on this instance.
boolean isAutomata()
Is automata
boolean isExtensionSupported(String tag)
Is extension supported
boolean isFileTransferSupported()
This method is deprecated. Use hasCapabilities(int) instead.
boolean isGeolocPushSupported()
This method is deprecated. Use hasCapabilities(int) instead.
boolean isImSessionSupported()
This method is deprecated. Use hasCapabilities(int) instead.
boolean isImageSharingSupported()
This method is deprecated. Use hasCapabilities(int) instead.
boolean isVideoSharingSupported()
This method is deprecated. Use hasCapabilities(int) instead.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Constants

public static final int CAPABILITY_FILE_TRANSFER

Since: API Level 1.6

Indicates the file transfer capability is supported.

Constant Value: 1 (0x00000001)

public static final int CAPABILITY_GEOLOC_PUSH

Since: API Level 1.6

Indicates the geoloc push capability is supported.

Constant Value: 4 (0x00000004)

public static final int CAPABILITY_IM

Since: API Level 1.6

Indicates the IM capability is supported.

Constant Value: 2 (0x00000002)

public static final int CAPABILITY_IMAGE_SHARING

Since: API Level 1.6

Indicates the image sharing capability is supported.

Constant Value: 8 (0x00000008)

public static final int CAPABILITY_VIDEO_SHARING

Since: API Level 1.6

Indicates the video sharing capability is supported.

Constant Value: 16 (0x00000010)

Public Methods

public Set<String> getSupportedExtensions ()

Since: API Level 1.5

Gets the set of supported extensions

Returns
  • Set of feature tags

public long getTimestamp ()

Since: API Level 1.5

Timestamp of the last capability response (in milliseconds)

Returns
  • the timestamp of the last capability response

public boolean hasCapabilities (int capabilities)

Since: API Level 1.6

Tests for the support of capabilities on this instance.

Returns
  • True if the capabilities are supported.

public boolean isAutomata ()

Since: API Level 1.5

Is automata

Returns
  • true if it's an automata else returns false

public boolean isExtensionSupported (String tag)

Since: API Level 1.5

Is extension supported

Parameters
tag Feature tag
Returns
  • true if supported else returns false

public boolean isFileTransferSupported ()

Since: API Level 1.5

This method is deprecated.
Use hasCapabilities(int) instead.

Is file transfer supported

Returns
  • true if supported else returns false

public boolean isGeolocPushSupported ()

Since: API Level 1.5

This method is deprecated.
Use hasCapabilities(int) instead.

Is geolocation push supported

Returns
  • true if supported else returns false

public boolean isImSessionSupported ()

Since: API Level 1.5

This method is deprecated.
Use hasCapabilities(int) instead.

Is IM session supported

Returns
  • true if supported else returns false

public boolean isImageSharingSupported ()

Since: API Level 1.5

This method is deprecated.
Use hasCapabilities(int) instead.

Is image sharing supported

Returns
  • true if supported else returns false

public boolean isVideoSharingSupported ()

Since: API Level 1.5

This method is deprecated.
Use hasCapabilities(int) instead.

Is video sharing supported

Returns
  • true if supported else returns false