Builds a new reCAPTCHA Client for the given Site Key and timeout.
The SDK supports one Site Key. Passing a different Site Key will
throw an exception.
At least a 10000 millisecond timeout is suggested to allow for slow
networking, though in some cases longer timeouts may be necessary. The
minimum allowable value is 5000 milliseconds.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-14 UTC."],[],[],null,["# RecaptchaEnterprise Framework Reference\n\nRecaptcha\n=========\n\n\n @interface Recaptcha : NSObject\n\nInterface to interact with reCAPTCHA.\n- `\n ``\n ``\n `\n\n ### [+fetchClientWithSiteKey:completion:](#/c:objc(cs)Recaptcha(cm)fetchClientWithSiteKey:completion:)\n\n `\n ` \n Builds a new reCAPTCHA Client for the given Site Key and timeout.\n\n The SDK supports one Site Key. Passing a different Site Key will\n throw an exception. \n\n #### Declaration\n\n Swift \n\n class func fetchClient(withSiteKey siteKey: String) async throws -\u003e ../Classes/RecaptchaClient.html\n\n Objective-C \n\n + (void)fetchClientWithSiteKey:(nonnull NSString *)siteKey\n completion:(nonnull void (^)(../Classes/RecaptchaClient.html *_Nullable,\n NSError *_Nullable))completion;\n\n #### Parameters\n\n- `\n ``\n ``\n `\n\n ### [+getClientWithSiteKey:withTimeout:completion:](#/c:objc(cs)Recaptcha(cm)getClientWithSiteKey:withTimeout:completion:)\n\n `\n ` \n Builds a new reCAPTCHA Client for the given Site Key and timeout.\n\n The SDK supports one Site Key. Passing a different Site Key will\n throw an exception.\n\n At least a 10000 millisecond timeout is suggested to allow for slow\n networking, though in some cases longer timeouts may be necessary. The\n minimum allowable value is 5000 milliseconds. \n\n #### Declaration\n\n Swift \n\n class func getClient(withSiteKey siteKey: String, withTimeout timeout: Double) async throws -\u003e ../Classes/RecaptchaClient.html\n\n Objective-C \n\n + (void)getClientWithSiteKey:(nonnull NSString *)siteKey\n withTimeout:(double)timeout\n completion:(nonnull void (^)(../Classes/RecaptchaClient.html *_Nullable,\n NSError *_Nullable))completion;\n\n #### Parameters\n\n- `\n ``\n ``\n `\n\n ### [+getClientWithSiteKey:completion:](#/c:objc(cs)Recaptcha(cm)getClientWithSiteKey:completion:)\n\n `\n ` \n Builds a new reCAPTCHA Client for the given Site Key.\n\n The SDK supports one Site Key. Passing a different Site Key will\n throw an exception.\n\n This method will timeout after 10 seconds. \n\n #### Declaration\n\n Swift \n\n class func getClient(withSiteKey siteKey: String) async throws -\u003e ../Classes/RecaptchaClient.html\n\n Objective-C \n\n + (void)getClientWithSiteKey:(nonnull NSString *)siteKey\n completion:(nonnull void (^)(../Classes/RecaptchaClient.html *_Nullable,\n NSError *_Nullable))completion;\n\n #### Parameters\n\n[Deprecated APIs and properties.\n-------------------------------](#/Deprecated-APIs-and-properties.)\n\n- `\n ``\n ``\n `\n\n ### [+getClientWithSiteKey:completionHandler:](#/c:objc(cs)Recaptcha(cm)getClientWithSiteKey:completionHandler:)\n\n `\n ` \n Deprecated\n\n Use the new method getClient(withSiteKey:timeout:completion:) \n Builds a new reCAPTCHA Client for the given SiteKey.\n\n This method will timeout after 10 seconds. \n\n #### Declaration\n\n Swift \n\n class func getClient(siteKey: String) async -\u003e (../Classes/RecaptchaClient.html?, ../Classes/RecaptchaError.html?)\n\n Objective-C \n\n + (void)getClientWithSiteKey:(nonnull NSString *)siteKey\n completionHandler:\n (nonnull void (^)(../Classes/RecaptchaClient.html *_Nullable,\n ../Classes/RecaptchaError.html *_Nullable))completionHandler;\n\n #### Parameters"]]