Type Method

objectWithItemProviderData:typeIdentifier:error:

Creates a new instance of a class using the given data and UTI string.

Required.

Declaration

+ (instancetype)objectWithItemProviderData:(NSData *)data typeIdentifier:(NSString *)typeIdentifier error:(NSError * _Nullable *)outError;

Parameters

data

The data used to create the object.

typeIdentifier

The uniform type identifier (UTI) representing the data type of data.

Return Value

An object created from the given data.