MokiManageDelegate Protocol Reference
Conforms to | NSObject |
Declared in | MokiManage.h |
Overview
MokiManage has a delegate in place to communicate with the host application after important events have taken place that the app should respond to. The events are centered around registration with MokiManage and settings changes through ASM.
Tasks
-
– finishedRegistrationWithError:
Called when the library has finished registering
-
– finishedUnRegistrationWithError:
Called when the library has finished unregistering
-
– finishedRegisteringToANewTenantWithError:
Called when the library has finished registering to a new tenant
-
– finishedPullingSettings:WithError:
Called when the library has finished pulling settings from the server
-
– finishedPushingSettings:WithError:
Called when the library has finished pushing settings to the server
-
– finishedEditingSettings
Called when the built in Settings Views and they are no longer visible
Instance Methods
finishedEditingSettings
Called when the built in Settings Views and they are no longer visible
- (void)finishedEditingSettings
Discussion
This method is called when the “Done” button is pressed on the Settings Views. You can respond to this by updating anything in your app that uses ASM settings if they were changed by the user. You can also wait until the library calls finishedPushingSettings to update these same settings changes as well.
@return
Declared In
MokiManage.h
finishedPullingSettings:WithError:
Called when the library has finished pulling settings from the server
- (void)finishedPullingSettings:(NSDictionary *)settings WithError:(NSError *)error
Parameters
- settings
The new settings dictionary recieved from the server
- error
The error that occurred during the pull from the server. Will be nil if no error occurred. @return
Discussion
This method is called when MokiASM has finished pulling settings from the server. If there is an error it will be communicated through the NSError. The settings dict and error object are mutually exclusive.
Declared In
MokiManage.h
finishedPushingSettings:WithError:
Called when the library has finished pushing settings to the server
- (void)finishedPushingSettings:(NSDictionary *)settings WithError:(NSError *)error
Parameters
- settings
The settings dictionary that was pushed to the server.
- error
The error that occurred during the push to the server. Will be nil if no error occurred. @return
Discussion
This method is called when MokiASM has finished pushing settings to the server. If there is an error it will be communicated through the NSError. The settings dict and error object are mutually exclusive.
Declared In
MokiManage.h
finishedRegisteringToANewTenantWithError:
Called when the library has finished registering to a new tenant
- (void)finishedRegisteringToANewTenantWithError:(NSError *)error
Parameters
- error
The error that occurred during the pull from the server. Will be nil if no error occurred. @return
Discussion
This method is called after a registration request returns to confirm or deny a successful unregistration and then registration into a new tenant based on the contents of the NSError param.
Declared In
MokiManage.h
finishedRegistrationWithError:
Called when the library has finished registering
- (void)finishedRegistrationWithError:(NSError *)error
Parameters
- error
The error that occurred during the pull from the server. Will be nil if no error occurred. @return
Discussion
This method is called after a registration request returns to confirm or deny a successful registration based on the contents of the NSError param.
Declared In
MokiManage.h
finishedUnRegistrationWithError:
Called when the library has finished unregistering
- (void)finishedUnRegistrationWithError:(NSError *)error
Parameters
- error
The error that occurred during the pull from the server. Will be nil if no error occurred. @return
Discussion
This method is called after a registration request returns to confirm or deny a successful unregistration based on the contents of the NSError param.
Declared In
MokiManage.h