Search in sources :

Example 1 with BitmonetOAuthStatusListener

use of com.bitmonet.BitmonetOAuthStatusListener in project coinbase-bitmonet-sdk by coinbase.

the class OAuthHelperUtils method sendOAuthResponse.

private void sendOAuthResponse(final Context context, final boolean status) {
    Handler applicationHandler = new Handler(context.getMainLooper());
    Runnable applicationRunnable = new Runnable() {

        @Override
        public void run() {
            ((BitmonetOAuthStatusListener) context).walletOAuthStatusListener(status);
        }
    };
    applicationHandler.post(applicationRunnable);
}
Also used : Handler(android.os.Handler) BitmonetOAuthStatusListener(com.bitmonet.BitmonetOAuthStatusListener)

Aggregations

Handler (android.os.Handler)1 BitmonetOAuthStatusListener (com.bitmonet.BitmonetOAuthStatusListener)1