Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

Class SystemCapabilityManager

Hierarchy

java.lang.Object

Package
com.smartdevicelink.proxy

Constructors

SystemCapabilityManager( ISdl callback )

public SystemCapabilityManager(ISdl callback)

Parameters

callback

Methods

parseRAIResponse( RegisterAppInterfaceResponse response )

public void parseRAIResponse(RegisterAppInterfaceResponse response)

Parameters

response

setCapability( SystemCapabilityType systemCapabilityType, Object capability )

Sets a capability in the cached map. This should only be done when an RPC is received and contains updates to the capability that is being cached in the SystemCapabilityManager.

public synchronized void setCapability(SystemCapabilityType systemCapabilityType,Object capability)

Parameters

systemCapabilityType
capability

isCapabilitySupported( SystemCapabilityType type )

Ability to see if the connected module supports the given capability. Useful to check before attempting to query for capabilities that require asynchronous calls to initialize.

public boolean isCapabilitySupported(SystemCapabilityType type)

Parameters

type
the SystemCapabilityType that is to be checked

getCapability( SystemCapabilityType systemCapabilityType, OnSystemCapabilityListener scListener )

public void getCapability(SystemCapabilityType systemCapabilityType,OnSystemCapabilityListener scListener)

Parameters

systemCapabilityType
Type of capability desired
scListener
callback to execute upon retrieving capability

getCapability( SystemCapabilityType systemCapabilityType )

public java.lang.Object getCapability(SystemCapabilityType systemCapabilityType)

Parameters

systemCapabilityType
Type of capability desired

addOnSystemCapabilityListener( SystemCapabilityType systemCapabilityType, OnSystemCapabilityListener listener )

Add a listener to be called whenever a new capability is retrieved

public void addOnSystemCapabilityListener(SystemCapabilityType systemCapabilityType,OnSystemCapabilityListener listener)

Parameters

systemCapabilityType
Type of capability desired
listener
callback to execute upon retrieving capability

removeOnSystemCapabilityListener( SystemCapabilityType systemCapabilityType, OnSystemCapabilityListener listener )

Remove an OnSystemCapabilityListener that was previously added

public boolean removeOnSystemCapabilityListener(SystemCapabilityType systemCapabilityType,OnSystemCapabilityListener listener)

Parameters

systemCapabilityType
Type of capability
listener
the listener that should be removed

convertToList( Object object, java.lang.Class<T> classType )

Converts a capability object into a list.

public static java.util.List convertToList(Object object,java.lang.Class<T> classType)

Parameters

object
the capability that needs to be converted
classType
The class type of that should be contained in the list

Inherited Methods

From Class Methods
java.lang.Object getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize
View on GitHub.com
Previous Section Next Section