8/15/2023 0 Comments Send anywhere estmob![]() Unable to download file with deleted link. public static void deleteKey(String key)ĭelete the link used for file sharing. public static void deleteHistory(String id)ĭelete all file transfer history. You can get history via the listener passed as a parameter. public static void getHistory(HistoryListener listener) You should call this method when the app is not visible on the screen or when it is no longer in use. Prevent the current app from appearing on other devices. Users can more easily transfer files between their devices. Make sure the app currently appears in the apps that use this SDK and the Send Anywhere application on nearby devices. OnDismissListener and resultCallback can be set to null if not used. Returns the object of for the dialog shown. public static DialogInterface showReceiveDialog(Context context, DialogInterface.OnDismissListener onDismissListener, ResultCallback resultCallback) The callback that receives the transmission result. The listener for receiving dialog dismiss event. Public static DialogInterface showSendDialog(Context context, Uri uris, DialogInterface.OnDismissListener onDismissListener, ResultCallback resultCallback) Show the send and receive progress and the result of the transfer operation. Public static void showActivity(Context context) Start the Receive Activity and start downloading immediately with the given key. Public static void startReceiveActivity(Context context, String key) Public static void startReceiveActivity(Context context) The array of URIs of the files to transfer. Public static void startSendActivity(Context context, Uri uris) Returns an object of the class that sets the SDK options or gets the current options. public static Settings getSettings(Context context) When this method is called, the resources allocated by the SDK are released. It should be called when you are finished using the SDK. } public static void init(Context context, String key) Public static void resetAllTrustedDevices() Public static void deleteDevice( String id) Public static void getDevice( String id, DeviceListener listener) Public static void getDeviceList( DeviceListListener listener) Public static void deleteReceivedNotification( long id) Public static void deleteAllReceivedNotifications() ![]() Public static void getReceivedNotifications( ReceivedNotificationListener listener) Public static void deleteKey( String key) Public static void deleteHistory( String id) Public static void getHistory( HistoryListener listener) OnDismissListener onDismissListener, ResultCallback resultCallback) Public static DialogInterface showReceiveDialog( Context context, DialogInterface. Public static DialogInterface showSendDialog( Context context, Uri uris, DialogInterface. Public static void showActivity( Context context) Public static void startReceiveActivity( Context context, String key) Public static void startReceiveActivity( Context context) Public static void startSendActivity( Context context, File files) Public static void startSendActivity( Context context, Uri uris) Public static Settings getSettings( Context context) Public static void init( Context applicationContext, String key) If this conflicts with your play-services dependency, please exclude play-services module used in our SDK: Send Anywhere SDK uses :play-ads-identifier internally. If this problem persists, please contact us to re-issue your api-key. It is declared as static, so you just have to call it once. You must call SendAnywhere.init(context, "YOUR_API_KEY") proceeding any transfer operations, e.g.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |