cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Re: Dropbox Api V2 Callback: Which import call is used

Dropbox Api V2 Callback: Which import call is used

Fischer Peter
Explorer | Level 3
Go to solution

Hallo,

 

I want to use DBClientV2 callback. Which one do I need to import? Android Studios shows many callbacks, but none of them seems to be the right one for me.

 

import com.dropbox.core.DbxException;

import com.dropbox.core.v2.DbxClientV2;

import com.dropbox.core.v2.files.FileMetadata;

 

private final Callback mCallback; <--- this call I want to use

private Exception mException;

 

Danke

FP

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

It looks like you're referring to some of the code included in the Android example for the official Dropbox API v2 Java SDK. I recommend running that example as provided and documented first, if you haven't already, to see how that works.

 

To answer your question specifically though, the "Callback" in "private final Callback mCallback", such as here, is defined as an interface, such as here.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

It looks like you're referring to some of the code included in the Android example for the official Dropbox API v2 Java SDK. I recommend running that example as provided and documented first, if you haven't already, to see how that works.

 

To answer your question specifically though, the "Callback" in "private final Callback mCallback", such as here, is defined as an interface, such as here.

Fischer Peter
Explorer | Level 3
Go to solution

Thanks, 

Didn't see that.

 

FP

Need more support?