Test out the feature with the below snippets, the method will be exposed in the upcoming release.


Swift

let handleErrorSel = NSSelectorFromString("handleError:clusterID:")

let customError = NSError(domain: "error_domain", code: 1, userInfo: [:])

Shake.perform(handleErrorSel, with: customError, with: "cluster_unique_id")


Objc

SEL handleErrorSel = NSSelectorFromString(@"handleError:clusterID:");

NSError *customError = [NSError errorWithDomain:@"error_domain" code:1 userInfo:@{}];

[SHKShake performSelector:handleErrorSel withObject:customError withObject:@"cluster_unique_id"];


Affected Releases: 14.2.0, 14.2.1


Did this answer your question?