OMIDScriptInjector
@interface OMIDScriptInjector : NSObject
/*
Injects the downloaded OMID JS content into the served HTML.
@param scriptContent containing the OMID JS service content to be injected into the hidden tracking web view.
@param html of the tag content which should be modified to include the downloaded OMID JS content.
@param error If an error occurs, contains an NSError object.
@return modified HTML including OMID JS or nil if an error occurs.
*/
+ (nullable NSString *)injectScriptContent:(nonnull NSString *)scriptContent
intoHTML:(nonnull NSString *)html
error:(NSError *_Nullable *_Nullable)error;
@end
Properties
-
Properties
Declaration
Objective-C
+ (nullable NSString *)injectScriptContent:(nonnull NSString *)scriptContent intoHTML:(nonnull NSString *)html error:(NSError *_Nullable *_Nullable)error;
Swift
class func injectScriptContent(_ scriptContent: String, intoHTML html: String) throws -> String