java.lang.Object
com.smartdevicelink.transport.BaseTransportConfig
public static final int FLAG_MULTI_SECURITY_OFF
public static final int FLAG_MULTI_SECURITY_LOW
public static final int FLAG_MULTI_SECURITY_MED
public static final int FLAG_MULTI_SECURITY_HIGH
From Class | Fields |
---|---|
com.smartdevicelink.transport.BaseTransportConfig | iHeartBeatTimeout |
public MultiplexTransportConfig(Context context,String appId)
public MultiplexTransportConfig(Context context,String appId,int securityLevel)
Overridden abstract method which returns specific type of this transport configuration.
public com.smartdevicelink.transport.enums.TransportType getTransportType()
Gets the context attached to this config
public android.content.Context getContext()
Gets the ComponentName of the router service attached to this config
public android.content.ComponentName getService()
Supplies the config with the router service that should be bound to
public void setService(ComponentName service)
Sets the security level that should be used to verify a router service that is to be bound
public void setSecurityLevel(int securityLevel)
Get the security level that will be used to verify a router service before binding
public int getSecurityLevel()
Set whether or not this app requires the use of a transport that supports high bandwidth
services. Common use is when an app uses the video/audio streaming services and there is no
other integration that could be useful to the user.
For example:
1. If an app intends to perform audio or video streaming and does not wish
to appear on the module when that isn't possible, a value of true should be sent.
2. If the same app wishes to appear on the module even when those services aren't available
a value of true should be sent. In this case, the app could display a message prompting the
user to "Please connect USB or Wifi" or it could have a separate integration like giving turn
by turn directions in place of streaming the full navigation map.
public void setRequiresHighBandwidth(boolean requiresHighBandwidth)
Get the setting from this config to see whether the app should be treated as requiring a high bandwidth transport.
public boolean requiresHighBandwidth()
Set whether or not this app requires the use of an audio streaming output device
public void setRequiresAudioSupport(boolean requiresAudioSupport)
Get the setting from this config to see whether the app should be treated as requiring an audio streaming output device
public java.lang.Boolean requiresAudioSupport()
This will set the order in which a primary transport is determined to be accepted or not. In the case of previous protocol versions ( < 5.1)
public void setPrimaryTransports(java.util.List<com.smartdevicelink.transport.enums.TransportType> transports)
Get the list of primary transports that are set to be accepted by this config
public java.util.List getPrimaryTransports()
This will set the order in which a primary transport is determined to be accepted or not. In the case of previous protocol versions ( < 5.1)
public void setSecondaryTransports(java.util.List<com.smartdevicelink.transport.enums.TransportType> transports)
Get the list of secondary transports that are set to be accepted by this config
public java.util.List getSecondaryTransports()
Set a lister for transport events. Useful when connected high bandwidth services like audio or video streaming
public void setTransportListener(MultiplexTransportConfig.TransportListener listener)
Getter for the supplied transport listener
public com.smartdevicelink.transport.MultiplexTransportConfig.TransportListener getTransportListener()
From Class | Methods |
---|---|
com.smartdevicelink.transport.BaseTransportConfig | getTransportType, getHeartBeatTimeout, setHeartBeatTimeout |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |