UAMediaAttachmentExtension


@interface UAMediaAttachmentExtension : UNNotificationServiceExtension

A notification service extension for downloading and attaching media.

  • Method for inferring a Uniform Type Identifier for a media attachment if the file lacks an extension.

    Declaration

    Objective-C

    - (NSString *)uniformTypeIdentifierForData:(NSData *)data;

    Swift

    func uniformTypeIdentifier(for data: Data!) -> String!

    Parameters

    data

    A memory-mapped NSData instance representing a downloaded attachment file

    Return Value

    The inferred identifier, or nil if unsuccessful.