public abstract static class ContactConnectorManager.ContactConnectorHandler
extends java.lang.Object
Constructor and Description |
---|
ContactConnectorHandler() |
Modifier and Type | Method and Description |
---|---|
abstract java.lang.String |
getDescription()
Provide human readable description of the handler
|
abstract java.lang.Object |
getFeature(java.lang.String connectorType,
ContactConnectorManager.ConnectorFeature feature,
java.lang.String contactUID,
java.lang.String connectorAddress)
Get data for the specified feature
|
abstract java.lang.String |
getName()
Provide the human-readable handler name/title
|
abstract boolean |
handleContact(java.lang.String connectorType,
java.lang.String contactUID,
java.lang.String connectorAddress)
Happens on UI thread, so please be quick
At least one of these two identifiers is required
|
abstract boolean |
hasFeature(ContactConnectorManager.ConnectorFeature feature)
Check if this handler supports the feature
|
boolean |
isSupported(Connector connector)
Check if this handler supports the connector
|
abstract boolean |
isSupported(java.lang.String connectorType)
Check if this handler supports the connector type
|
public boolean isSupported(Connector connector)
connector
- the connectorpublic abstract boolean isSupported(java.lang.String connectorType)
connectorType
- the connector typepublic abstract boolean hasFeature(ContactConnectorManager.ConnectorFeature feature)
feature
- the connector featurepublic abstract java.lang.String getName()
public abstract java.lang.String getDescription()
public abstract boolean handleContact(java.lang.String connectorType, java.lang.String contactUID, java.lang.String connectorAddress)
connectorType
- the type of connectorcontactUID
- the contact identifierconnectorAddress
- the addresspublic abstract java.lang.Object getFeature(java.lang.String connectorType, ContactConnectorManager.ConnectorFeature feature, java.lang.String contactUID, java.lang.String connectorAddress)