SBSDKGenericDocumentWrapper
@interface SBSDKGenericDocumentWrapper : NSObject
Base class for strongly-typed SBSDKGenericDocument wrappers
-
Initializes a new wrapper of the given document. Returns nil if self.requiredDocumentType is not nil and is not equal to the document’s type name.
Declaration
Objective-C
- (nullable instancetype)initWithGenericDocument: (nullable SBSDKGenericDocument *)document;
Swift
init?(genericDocument document: SBSDKGenericDocument?)
-
The required type of the wrapped document. Nil if this wrapper can wrap more than one type of document.
Declaration
Objective-C
- (nullable NSString *)requiredDocumentType;
Swift
func requiredDocumentType() -> String?
-
The wrapped generic document.
Declaration
Objective-C
@property (readonly, nonnull) SBSDKGenericDocument *document;
Swift
var document: SBSDKGenericDocument { get }