LCIMAudioMessage
Objective-C
@interface LCIMAudioMessage : LCIMTypedMessage <LCIMTypedMessageSubclassing>
Swift
class LCIMAudioMessage : LCIMTypedMessage, LCIMTypedMessageSubclassing
Audio Message. Can be created by the audio’s file path.
-
File size in bytes.
Declaration
Objective-C
@property (nonatomic, readonly) double size;
Swift
var size: Double { get }
-
Audio’s duration in seconds.
Declaration
Objective-C
@property (nonatomic, readonly) double duration;
Swift
var duration: Double { get }
-
File URL string.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *url;
Swift
var url: String? { get }
-
Audio format, mp3, aac, etc. Simply get it by the file extension.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *format;
Swift
var format: String? { get }