# Titanium.Media.SystemAlert

An object for playing system sounds.

Availability
6.1.0
9.2.0

DEPRECATED SINCE 8.0.0

This iOS-only API has been deprecated and moved to the Ti.SystemAlert module in 8.0.0.

# Overview

You can use this module to provide audible system alerts.

You can use it to play short (30 seconds or shorter) sounds. The interface does not provide level, positioning, looping, or timing control, and does not support simultaneous playback: You can play only one sound at a time.

This module differs from the Sound module because it honors the ringtone volume, not the Music volume.

Use the Titanium.Media.createSystemAlert method to create a SystemAlert object.

Know more about System Sound Services (opens new window).

# Examples

# Simple Example

Simple example of playing a WAVE file from the Resources directory.

var player = Ti.Media.createSystemAlert({url:"alert.wav"});
player.play();

# Properties

# url

Availability
6.1.0
9.2.0
url :String

URL identifying the audio resource.

# Methods

# play

Availability
6.1.0
9.2.0
play() void

Start playing the system alert.

Returns

Type
void