Robomotion class

Constructors

Robomotion({Config? config, void onMsgRecv(QueueMessage data)?, EncryptionCallback? encrypt, DecryptionCallback? decrypt})

Properties

config Config?
getter/setter pair
decrypt DecryptionCallback?
getter/setter pair
encrypt EncryptionCallback?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onMsgRecv ↔ void Function(QueueMessage data)?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apiRequest({required String method, required String endpoint, Map? body, Map<String, String>? queryParams, bool withCredentials = true}) Future<Map>
appIn(Map payload, {dynamic encrypted = true, dynamic closeAfter = false, void onResponse(dynamic)?}) Future<String>
askPassword(BuildContext context) Future<String?>
askVaultSecret(BuildContext context, Vault vault) Future<String?>
connect({String? token, String? instanceID, String? apiURL = "https://api.robomotion.io"}) Future<void>
createVault(Map user, String name, String description, {List<int>? secretKey}) Future<Vault?>
createVaultItem(String vaultID, List<int> secretKey, List<int> vaultKey, String name, int category, String data) Future<Map?>
getAppInstance(String instanceID) Future<GetInstanceResponse>
getConnectedRobots() Future<Map<String, dynamic>>
getFileURL(String file) Future<String?>
getInstanceIDFromQueryParam() String?
getPrivateKey(Map user, String password) Future<String>
getPublishedFlow(String id) Future<PublishedFlow>
getPublishedFlows() Future<List<PublishedFlow>>
getUser() Future<Map?>
getVaultItem(String vaultID, String itemID, List<int> secretKey, List<int> vaultKey) Future<String>
getVaultItems(String vaultID) Future<Map<String, dynamic>>
getVaults() Future<Map<String, Vault>>
injectVault(String vaultID, String robotID, String encSecretKey, String encVaultKey) Future<void>
keyExchange() Future<void>
login(String domain, String username, String password) Future<Map>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publishAppInstance(String instanceID, bool published) Future<bool>
removeVault(String vaultID) Future<void>
run(String appId) Future<void>
runFlow(String instanceID, String flowID, String versionID) Future<String?>
sendAppMsg(QueueMessage msg) Future<void>
startInstance(String instanceID) Future<StartInstanceResponse>
subscribe(String id, void f(dynamic)) → void
toString() String
A string representation of this object.
inherited
updateVaultItem(String vaultID, String itemID, List<int> secretKey, List<int> vaultKey, String iv, {String name = "", String data = ""}) Future<void>
uploadFile(String file, Uint8List data, {bool? public}) Future<String?>
verifySecret(Vault vault, Map user, String password) Future<void>

Operators

operator ==(Object other) bool
The equality operator.
inherited