1
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類是hidden.Is有沒有辦法通過反射來實例化EnrollmentCallback類,這是等同於:通過實例化一個反思靜態抽象類
EnrollmentCallback callbackObject = new EnrollmentCallback()
{
public void onEnrollmentError(int errMsgId, CharSequence errString) { }
public void onEnrollmentHelp(int helpMsgId, CharSequence helpString) { }
public void onEnrollmentProgress(int remaining) { }
};