コード例 #1
0
 public static void Init(Context context, DbxClientV2 dbxClient)
 {
     // Configure picasso to know about special thumbnail requests
     sPicasso = new Picasso.Builder(context)
                .Downloader(new OkHttpDownloader(context))
                .AddRequestHandler(new FileThumbnailRequestHandler(dbxClient))
                .Build();
 }
コード例 #2
0
        public static void Init(String accessToken)
        {
            if (sDbxClient == null)
            {
                DbxRequestConfig requestConfig = DbxRequestConfig
                                                 .NewBuilder("naxam-examples-v2-demo")
                                                 .WithHttpRequestor(new OkHttp3Requestor(OkHttp3Requestor.DefaultOkHttpClient()))
                                                 .Build();

                sDbxClient = new DbxClientV2(requestConfig, accessToken);
            }
        }
コード例 #3
0
 public FileThumbnailRequestHandler(DbxClientV2 dbxClient)
 {
     mDbxClient = dbxClient;
 }