diff options
Diffstat (limited to 'src/objc/provider/MCOMailProvidersManager.h')
-rw-r--r-- | src/objc/provider/MCOMailProvidersManager.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/objc/provider/MCOMailProvidersManager.h b/src/objc/provider/MCOMailProvidersManager.h index 09df25ad..e5d2b9d6 100644 --- a/src/objc/provider/MCOMailProvidersManager.h +++ b/src/objc/provider/MCOMailProvidersManager.h @@ -20,6 +20,8 @@ @interface MCOMailProvidersManager : NSObject +NS_ASSUME_NONNULL_BEGIN + /** The shared manager that is used for all lookups */ + (MCOMailProvidersManager *) sharedManager; @@ -27,20 +29,20 @@ Given an email address will try to determine the provider @return The email provider info or nil if it can't be determined. */ -- (MCOMailProvider *) providerForEmail:(NSString *)email; +- (nullable MCOMailProvider *) providerForEmail:(NSString *)email; /** Given the DNS MX record will try to determine the provider @return The email provider info or nil if it can't be determined. */ -- (MCOMailProvider *) providerForMX:(NSString *)hostname; +- (nullable MCOMailProvider *) providerForMX:(NSString *)hostname; /** Will return information about a provider. Useful if you already know the provider (like if it has been determined previously) @return The email provider info or nil if none matches */ -- (MCOMailProvider *) providerForIdentifier:(NSString *)identifier; +- (nullable MCOMailProvider *) providerForIdentifier:(NSString *)identifier; /** Registers the providers in the JSON file at the file path so they @@ -48,4 +50,6 @@ */ - (void) registerProvidersWithFilename:(NSString *)filename; +NS_ASSUME_NONNULL_END + @end |