public class FingerprintManager {
* @hide
*/
// this class is hidden
public static abstract class EnrollmentCallback {
public void onEnrollmentError(int errMsgId, CharSequence errString) { }
public void onEnrollmentHelp(int helpMsgId, CharSequence helpString) { }
public void onEnrollmentProgress(int remaining) { }
};
}
EnrollmentCallback class is hidden.Is there a way to instantiate EnrollmentCallback class through reflection which is equivalent to :
EnrollmentCallback callbackObject = new EnrollmentCallback ()
{
public void onEnrollmentError(int errMsgId, CharSequence errString) { }
public void onEnrollmentHelp(int helpMsgId, CharSequence helpString) { }
public void onEnrollmentProgress(int remaining) { }
};
Aucun commentaire:
Enregistrer un commentaire