java.lang.Object
Life Cycle **************************************************************
public TransportBroker(Context context,String appId,ComponentName service)
protected boolean sendMessageToRouterService(Message message)
protected boolean sendMessageToRouterService(Message message,int retryCount)
This beings the initial connection with the router service.
public boolean start()
public void resetSession()
This method will end our communication with the router service.
public void stop()
Event Callbacks **************************************************************
public void onServiceUnregsiteredFromRouterService(int unregisterCode)
public void onHardwareDisconnected(TransportRecord record,java.util.List<com.smartdevicelink.transport.utl.TransportRecord> connectedTransports)
public boolean onHardwareConnected(java.util.List<com.smartdevicelink.transport.utl.TransportRecord> transports)
public void onPacketReceived(Parcelable packet)
public void onLegacyModeEnabled()
protected int getRouterServiceVersion()
public boolean sendPacketToRouterService(SdlPacket packet)
protected android.content.ComponentName getRouterService()
public static java.lang.Long convertAppId(String appId)
protected void enableLegacyMode(boolean enable)
protected static boolean isLegacyModeEnabled()
Use this method to let the router service know that you are requesting a new session from the head unit.
public void requestNewSession(TransportRecord transportRecord)
Request secondary transport and communicate details to router service
public void requestSecondaryTransportConnection(byte sessionId,Bundle bundle)
public void removeSession(long sessionId)
From Class | Methods |
---|---|
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |