public class HMIPermissions extends RPCStruct
Parameter List
| Name | Type | Description | SmartDeviceLink Ver. Available |
|---|---|---|---|
| allowed | HMILevel | A set of all HMI levels that are permitted for this given RPC.
|
SmartDeviceLink 2.0 |
| userDisallowed | HMILevel | A set of all HMI levels that are prohibited for this given RPC.
|
SmartDeviceLink 2.0 |
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ALLOWED |
static String |
KEY_USER_DISALLOWED |
KEY_BULK_DATA, KEY_PROTECTED, store| Constructor and Description |
|---|
HMIPermissions()
Constructs a newly allocated HMIPermissions object
|
HMIPermissions(Hashtable<String,Object> hash)
Constructs a newly allocated HMIPermissions object indicated by the Hashtable parameter
|
HMIPermissions(List<HMILevel> allowed,
List<HMILevel> userDisallowed)
Constructs a newly allocated HMIPermissions object
|
| Modifier and Type | Method and Description |
|---|---|
List<HMILevel> |
getAllowed()
get a set of all HMI levels that are permitted for this given RPC.
|
List<HMILevel> |
getUserDisallowed()
get a set of all HMI levels that are prohibited for this given RPC
|
HMIPermissions |
setAllowed(List<HMILevel> allowed)
set HMI level that is permitted for this given RPC.
|
HMIPermissions |
setUserDisallowed(List<HMILevel> userDisallowed)
set a set of all HMI levels that are prohibited for this given RPC
|
clone, deserializeJSON, equals, format, formatObject, getBoolean, getBulkData, getDouble, getFloat, getInteger, getLong, getMessageTypeName, getObject, getStore, getStoreValue, getString, getValue, getValueForString, hashCode, hasKey, isPayloadProtected, serializeJSON, serializeJSON, setBulkData, setPayloadProtected, setValuepublic static final String KEY_ALLOWED
public static final String KEY_USER_DISALLOWED
public HMIPermissions()
public HMIPermissions(Hashtable<String,Object> hash)
hash - The Hashtable to usepublic List<HMILevel> getAllowed()
public HMIPermissions setAllowed(@NonNull List<HMILevel> allowed)
allowed - HMI level that is permitted for this given RPCpublic List<HMILevel> getUserDisallowed()
public HMIPermissions setUserDisallowed(@NonNull List<HMILevel> userDisallowed)
userDisallowed - HMI level that is prohibited for this given RPC