NuboCamWizard(NuboCamWizardDelegate delegate);
Constructs NuboCamWizard instance.
prepareForConnection(Map<String, void *> options);
Prepares for connection process. Options map should contain "cameraId" (of disconnected camera) for restoration process or "zoneId" for adding process.
connectToCamera(WifiNetwork nuboCamWifiNetwork);
Connects to wifi network of chosen NuboCam.
iOS specific: user should connect to NuboCam wifi network manually using Settings app. After returning to app he should call this method (without parameters).
Android specific: list of available wifi networks is returned by prepareForConnection callback. User should use one of returned object to pass as parameter of this function.
Carrier[] getListOfAvailableCarriers();
Returns list of Carriers to which NuboCam can be connected. Array will be empty if mobile setup option is not available.
refreshWifiList();
Refreshes list of WifiNetwork objects to which NuboCam can be connected.
connectCameraToNetwork(NetworkInterface network, String cameraName);
Connects NuboCam to provided network with given camera name (both WifiNetwork and AccessPointName are inherited from NetworkInterface).
cancelCurrentOperation();
Cancels current operation. No callbacks will be triggered.
disconnectFromNuboCamWifi();
Android specific: Disconnects device from NuboCam Wi-Fi access point.
@required onPreparedForConnection(WifiNetwork[] nuboCamWifiNetworks);
Called when SDK is ready for NuboCam connection.
Android specific: returns list of available NuboCam wifi networks to connect. One of objects should be used with connectToCamera method.
@required onConnectedToCamera(MobileSetupOption option);
Called when SDK established connection with NuboCam. Now user can retrieve list of wifi. Option enumeration determines available mobile setup options.
@optional onWifiListRefreshed(WifiNetwork[] networks);
Returns list of Wifi networks to which NuboCam can be connected.
@optional onDisconnectedFromCameraUnexpectedly();
Will be called if NuboCam will try to connect to cloud with previously setup sim. Expect onFinished or onError callback after this one.
@required onFinished(Long cameraId);
If everything went ok, will get called after the NuboCam has been added/restored.
@required onError(MobileSDKError error);
Will get called if there's an error in the process of adding/restoring NuboCam.
case notAvailable
case oldFirmware
case pinRequired
case ownSim
Empty abstraction which represents some network interface.
String getSsid();
Returns SSID of wifi network.
String getEncryption();
Returns encryption of wifi network.
Int getStrengthPercentage();
Returns strength of wifi network in range (0..100].
String password;
Password of wifi network.
AccessPointName(String name, String username, String password);
Constructs AccessPointName instance.
String getName();
Returns name of access point name.
String getUsername();
Returns username of access point name.
String getPassword();
Returns password of access point name.
String getName();
Returns name of carrier.
String getMcc();
Returns MCC of carrier.
String getMnc();
Returns MNC of carrier.
String getCountryIso();
Returns country ISO of carrier.
AccessPointName[] getAccessPointNamesList();
Returns list of APNs of carrier.