MBAgeResult

@protocol MBAgeResult

@required

/**
 * The current age of the document owner in years. It is calculated difference
 * between now and date of birth. Now is current time on the device.
 * @return current age of the document owner in years or -1 if date of birth is unknown.
*/
@property (nonatomic, readonly) NSInteger age;

/**
 * Calculates whether the document owner is older than the given ageLimit in years or not.
 * Status is calculated by using the date of birth and the current time on the device.
 * @param ageLimit age limit in years
 * @return age limit status for the document owner
*/
- (MBAgeLimitStatus)getAgeLimitStatusFor:(NSInteger)ageLimit;

@end

Undocumented

  • age

    The current age of the document owner in years. It is calculated difference between now and date of birth. Now is current time on the device.

    Declaration

    Objective-C

    @required
    @property (nonatomic, readonly) NSInteger age;

    Swift

    var age: Int32 { get }

    Return Value

    current age of the document owner in years or -1 if date of birth is unknown.

  • Calculates whether the document owner is older than the given ageLimit in years or not. Status is calculated by using the date of birth and the current time on the device.

    Declaration

    Objective-C

    - (MBAgeLimitStatus)getAgeLimitStatusFor:(NSInteger)ageLimit;

    Swift

    func getAgeLimitStatus(for ageLimit: Any!) -> Any!

    Parameters

    ageLimit

    age limit in years

    Return Value

    age limit status for the document owner