alarm_attachment_type Property
This property contains the MIME-Type of the attachment.
Syntax
def get_alarm_attachment_type(alarm_index: int) -> str: ... def set_alarm_attachment_type(alarm_index: int, value: str) -> None: ...
Default Value
""
Remarks
This property contains the MIME-Type of the attachment. If the alarm_action is set to aAudio or aEmail the alarm_attachment property may optionally contain a base-64 binary encoded attachment. The alarm_attachment_type property is used to tell the CalDAV server what type of binary file it is receiving. This property is a standard MIME content type, in the format "type/sub-type". The most common audio types are shown in the table below:
AttachmentType | File Extension | Description |
audio/basic | au, snd | basic audio, 8-bit u-law PCM. |
audio/mid | mid, rmi | MIDI music data |
audio/mpeg | mp2, mp3 | MPEG-1 Audio Layer II and III. |
audio/x-aiff | aiff, aif, aifc | Macintosh audio format |
audio/x-mp4a-latm | m4a | MPEG-4 Audio |
audio/x-pn-realaudio | ra, ram | Realaudio |
audio/x-wav | wav | Microsoft waveform audio |
audio/x-ms-wma | wma | Windows Media Audio (Microsoft) |
You may use standard MIME content-types for any other file type you wish to submit in the alarm_attachment property. If alarm_attachment is specified but alarm_attachment_type is left blank, no format type will be submitted with the alarm_attachment and the CalDAV server may (or may not) attempt to determine the data type itself.
The alarm_index parameter specifies the index of the item in the array. The size of the array is controlled by the alarm_count property.