// // INPersonHandle.h // Intents // // Copyright (c) 2016-2020 Apple Inc. All rights reserved. // #import #import typedef NS_ENUM(NSInteger, INPersonHandleType) { INPersonHandleTypeUnknown = 0, INPersonHandleTypeEmailAddress, INPersonHandleTypePhoneNumber, } API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2)) API_UNAVAILABLE(tvos); NS_ASSUME_NONNULL_BEGIN API_AVAILABLE(ios(10.0), macos(11.0), watchos(3.2)) API_UNAVAILABLE(tvos) @interface INPersonHandle : NSObject @property (readonly, nullable, copy, NS_NONATOMIC_IOSONLY) NSString *value; @property (readonly, NS_NONATOMIC_IOSONLY) INPersonHandleType type; @property (readonly, nullable, NS_NONATOMIC_IOSONLY) INPersonHandleLabel label API_AVAILABLE(ios(10.2)); - (instancetype)init NS_UNAVAILABLE; - (instancetype)initWithValue:(nullable NSString *)value type:(INPersonHandleType)type label:(nullable INPersonHandleLabel)label NS_DESIGNATED_INITIALIZER API_AVAILABLE(ios(10.2)); - (instancetype)initWithValue:(nullable NSString *)value type:(INPersonHandleType)type; @end NS_ASSUME_NONNULL_END