restoreScene method

Future restoreScene (dynamic result(MLSDKScene scene))

Implementation

static Future<dynamic> restoreScene(Function(MLSDKScene scene) result) {

  Future<dynamic> callback = _channel.invokeMethod(MobLinkMethods.restoreScene.name);

  callback.then((dynamic response) {
    if (result != null) {
      MLSDKScene scenes = new MLSDKScene(response["path"], response["params"]);
      scenes.mobid = response["mobid"];
      scenes.className = response["className"];
      scenes.rawURL = response["rawURL"];
      result(scenes);
    }
  });
  return callback;
}