Create Hive¶
Description¶
This operation creates a new hive.
Method¶
[[Backendless.shared hive:(NSString *)hiveName] createWithResponseHandler:^(void)responseHandler errorHandler:^(Fault *)errorHandler];
Backendless.shared.hive(hiveName: String).create(responseHandler: (() -> Void)!, errorHandler: ((Fault) -> Void)!)
where:
Argument | Description |
---|---|
hiveName |
A name to assign to a newly created Hive. String value. |
Return Value¶
None.
Example¶
The example below creates a new hive and names it "groceryStore"
.
[[Backendless.shared hive:@"groceryStore"] createWithResponseHandler:^{
// handle response
} errorHandler:^(Fault *fault) {
// handle error
}];
Backendless.shared.hive("groceryStore").create(responseHandler: {
// handle response
}, errorHandler: { fault in
// handle error
})
where:
Argument | Description |
---|---|
"groceryStore" |
The name of the new hive to create in the system. |
Codeless Reference¶
where:
Argument | Description |
---|---|
name |
Name for the new hive. |
The example below creates a new hive with a name "groceryStore"
: