Home > @magiclane/maps-sdk > GemParameter
GemParameter class
Core A parameter is a tuple ( key, value, name ).
key is the string parameter identifier
value is the parameter variant value.
name is the string parameter name. When parameters are returned from SDK the name is translated in the SDK language
value is the parameter value. It is dependent on the type
Signature:
export declare class GemParameter extends GemAutoreleaseObject Extends: GemAutoreleaseObject
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Construct a parameter object. |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
string |
(Optional) | ||
|
string |
(Optional) | ||
|
(Optional) | |||
|
any |
(Optional) |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Returns the parameter as a JSON object. | ||
|
| ||
|
|
Creates a GemParameter with a ValueType.bool value type | |
|
|
Creates a GemParameter with a ValueType.int value type | |
|
|
Creates a GemParameter with a ValueType.list value type | |
|
|
Creates a GemParameter with a ValueType.real value type | |
|
|
Creates a GemParameter with a ValueType.string value type |