public class SdlAppInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SdlAppInfo.BestRouterComparator
This comparator will sort a list to find the best router service to start out of the known SDL enabled apps
|
| Constructor and Description |
|---|
SdlAppInfo(ResolveInfo resolveInfo,
PackageInfo packageInfo)
Deprecated.
|
SdlAppInfo(ResolveInfo resolveInfo,
PackageInfo packageInfo,
Context context) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkIfVehicleSupported(List<VehicleType> supportedVehicleList,
VehicleType connectedVehicle)
Check to see if a vehicle type is supported.
|
static List<VehicleType> |
deserializeSupportedVehicles(XmlResourceParser parser)
Retrieves the list of vehicle types that are set in the xml file.
|
ComponentName |
getRouterServiceComponentName() |
int |
getRouterServiceVersion() |
List<VehicleType> |
getSupportedVehicles()
Gets app's supported vehicle types.
|
boolean |
isCustomRouterService() |
String |
toString() |
@Deprecated public SdlAppInfo(ResolveInfo resolveInfo, PackageInfo packageInfo)
public SdlAppInfo(ResolveInfo resolveInfo, PackageInfo packageInfo, Context context)
public int getRouterServiceVersion()
public boolean isCustomRouterService()
public ComponentName getRouterServiceComponentName()
public static List<VehicleType> deserializeSupportedVehicles(XmlResourceParser parser)
parser - The xml parsing interface for the vehicle types xml file.public static boolean checkIfVehicleSupported(List<VehicleType> supportedVehicleList, VehicleType connectedVehicle)
supportedVehicleList - the list of supported vehicle types.connectedVehicle - the vehicle type to check.public List<VehicleType> getSupportedVehicles()