
com.pryv.auth.AuthController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lib Show documentation
Show all versions of lib Show documentation
Java and Android library to authorize, authenticate and access Pryv users data as defined in the Pryv API.
The newest version!
package com.pryv.auth;
/**
*
* callback used by poller after login successful
*
* @author ik
*
*/
public interface AuthController {
/**
* begin login sequence
*/
void signIn();
/**
* login successfull callback, returns username and auth token
*
* @param username
* @param token
*/
void onSuccess(String username, String token);
/**
* auth error
*
* @param message
*/
void onError(String message);
/**
* auth refused
*
* @param reasonId
* @param message
* @param detail
*/
void onRefused(int reasonId, String message, String detail);
/**
* display web view
*
* @param the
* url of the login page
*/
void displayLoginView(String url);
}