c# - I want to do dropbox sync in xamarin forms -
i have created app in xamarin pcl. want dropbox sync in ios project. have created app in dropbox , have app key , secret key.
i have add following mentioned code in appdelegate.cs file
const string dropboxsynckey = "appkey"; const string dropboxsyncsecret = "seckey"; var manager = new dbaccountmanager(dropboxsynckey,dropboxsyncsecret); dbaccountmanager.sharedmanager = manager; var account = manager.linkedaccount; if (account != null) { var filesystem = new dbfilesystem (account); dbfilesystem.sharedfilesystem = filesystem; }
now how link user account. how user link app.
it looks you're using dropbox sync & datastore xamarin component. instructions there, should call in ui event handler, i.e., when user indicates they're ready link dropbox:
dbaccountmanager.sharedmanager.linkfromcontroller (mycontroller)
there other setup instructions there well.
however, component based on deprecated sync , datastores sdk, per this blog post, shouldn't use it.
Comments
Post a Comment