/******************************************************* * Copyright (C) 2018 XMind Ltd. - All Rights Reserved *******************************************************/ #ifndef HANDOFF_H #define HANDOFF_H #include /* * Make the file activated, so that it can be handoff to iOS. * arguments: * activateFile: String * userActivityType: String */ Napi::Value HoActivateFile(const Napi::CallbackInfo& info); /* * When the file is closed, call this method to deactivate the file to free resource. * arguments: * path: String */ Napi::Value HoDeactivateFile(const Napi::CallbackInfo& info); /* * Ensure the icloud folder is created. Not 100% work. * arguments: * appIdentifier: String */ Napi::Value HoEnsureUbiquityContainer(const Napi::CallbackInfo& info); /* * Call this method to try downloading an iCloud file. * arguments: * path: String * returns: * true if the file starts to download. * false if the file doesn't need to download. */ Napi::Value HoDownloadICloudFile(const Napi::CallbackInfo& info); Napi::Value HoGetUbiquitousItemDownloadingStatus(const Napi::CallbackInfo& info); #endif // HANDOFF_H