Package org.robovm.apple.audiotoolbox
Class AudioServices
- java.lang.Object
-
- org.robovm.apple.foundation.CocoaUtility
-
- org.robovm.apple.audiotoolbox.AudioServices
-
public class AudioServices extends CocoaUtility
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AudioServices.SystemSoundCompletionListener
-
Field Summary
Fields Modifier and Type Field Description static int
SystemSoundVibrate
-
Constructor Summary
Constructors Constructor Description AudioServices()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static OSStatus
addSystemSoundCompletion0(int inSystemSoundID, NSRunLoop inRunLoop, java.lang.String inRunLoopMode, org.robovm.rt.bro.ptr.FunctionPtr inCompletionRoutine, org.robovm.rt.bro.ptr.VoidPtr inClientData)
static void
addSystemSoundCompletionListener(int systemSoundID, NSRunLoop runLoop, java.lang.String runLoopMode, AudioServices.SystemSoundCompletionListener listener)
static boolean
completesPlaybackIfAppDies(int systemSoundID)
static int
createSystemSoundID(NSURL fileURL)
protected static OSStatus
createSystemSoundID0(NSURL inFileURL, org.robovm.rt.bro.ptr.IntPtr outSystemSoundID)
static void
disposeSystemSoundID(int systemSoundID)
protected static OSStatus
disposeSystemSoundID0(int inSystemSoundID)
static <T extends org.robovm.rt.bro.Struct<T>>
TgetProperty(AudioServicesProperty id, org.robovm.rt.bro.Struct<?> specifier, java.lang.Class<T> type)
protected static OSStatus
getProperty0(AudioServicesProperty inPropertyID, int inSpecifierSize, org.robovm.rt.bro.ptr.VoidPtr inSpecifier, org.robovm.rt.bro.ptr.IntPtr ioPropertyDataSize, org.robovm.rt.bro.ptr.VoidPtr outPropertyData)
protected static OSStatus
getPropertyInfo0(AudioServicesProperty inPropertyID, int inSpecifierSize, org.robovm.rt.bro.ptr.VoidPtr inSpecifier, org.robovm.rt.bro.ptr.IntPtr outPropertyDataSize, org.robovm.rt.bro.ptr.BooleanPtr outWritable)
static int
getPropertySize(AudioServicesProperty id)
static boolean
isPropertyWritable(AudioServicesProperty id)
static boolean
isUISound(int systemSoundID)
static void
playAlertSound(int systemSoundID)
protected static void
playAlertSoundWithCompletion0(int inSystemSoundID, java.lang.Runnable inCompletionBlock)
static void
playSystemSound(int systemSoundID)
protected static void
playSystemSoundWithCompletion0(int inSystemSoundID, java.lang.Runnable inCompletionBlock)
static void
removeSystemSoundCompletion(int systemSoundID)
protected static void
removeSystemSoundCompletion0(int inSystemSoundID)
static void
setCompletesPlaybackIfAppDies(int systemSoundID, boolean ui)
static <T extends org.robovm.rt.bro.Struct<T>>
voidsetProperty(AudioServicesProperty id, org.robovm.rt.bro.Struct<?> specifier, T data)
protected static OSStatus
setProperty0(AudioServicesProperty inPropertyID, int inSpecifierSize, org.robovm.rt.bro.ptr.VoidPtr inSpecifier, int inPropertyDataSize, org.robovm.rt.bro.ptr.VoidPtr inPropertyData)
static void
setUISound(int systemSoundID, boolean ui)
-
-
-
Field Detail
-
SystemSoundVibrate
public static final int SystemSoundVibrate
- See Also:
- Constant Field Values
-
-
Method Detail
-
createSystemSoundID
public static int createSystemSoundID(NSURL fileURL) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
disposeSystemSoundID
public static void disposeSystemSoundID(int systemSoundID) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
addSystemSoundCompletionListener
public static void addSystemSoundCompletionListener(int systemSoundID, NSRunLoop runLoop, java.lang.String runLoopMode, AudioServices.SystemSoundCompletionListener listener) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
removeSystemSoundCompletion
public static void removeSystemSoundCompletion(int systemSoundID)
- Since:
- Available in iOS 2.0 and later.
-
getPropertySize
public static int getPropertySize(AudioServicesProperty id) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
isPropertyWritable
public static boolean isPropertyWritable(AudioServicesProperty id) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
getProperty
public static <T extends org.robovm.rt.bro.Struct<T>> T getProperty(AudioServicesProperty id, org.robovm.rt.bro.Struct<?> specifier, java.lang.Class<T> type) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
setProperty
public static <T extends org.robovm.rt.bro.Struct<T>> void setProperty(AudioServicesProperty id, org.robovm.rt.bro.Struct<?> specifier, T data) throws OSStatusException
- Throws:
OSStatusException
- Since:
- Available in iOS 2.0 and later.
-
isUISound
public static boolean isUISound(int systemSoundID) throws OSStatusException
- Throws:
OSStatusException
-
setUISound
public static void setUISound(int systemSoundID, boolean ui) throws OSStatusException
- Throws:
OSStatusException
-
completesPlaybackIfAppDies
public static boolean completesPlaybackIfAppDies(int systemSoundID) throws OSStatusException
- Throws:
OSStatusException
-
setCompletesPlaybackIfAppDies
public static void setCompletesPlaybackIfAppDies(int systemSoundID, boolean ui) throws OSStatusException
- Throws:
OSStatusException
-
createSystemSoundID0
protected static OSStatus createSystemSoundID0(NSURL inFileURL, org.robovm.rt.bro.ptr.IntPtr outSystemSoundID)
- Since:
- Available in iOS 2.0 and later.
-
disposeSystemSoundID0
protected static OSStatus disposeSystemSoundID0(int inSystemSoundID)
- Since:
- Available in iOS 2.0 and later.
-
playAlertSoundWithCompletion0
protected static void playAlertSoundWithCompletion0(int inSystemSoundID, java.lang.Runnable inCompletionBlock)
- Since:
- Available in iOS 9.0 and later.
-
playSystemSoundWithCompletion0
protected static void playSystemSoundWithCompletion0(int inSystemSoundID, java.lang.Runnable inCompletionBlock)
- Since:
- Available in iOS 9.0 and later.
-
getPropertyInfo0
protected static OSStatus getPropertyInfo0(AudioServicesProperty inPropertyID, int inSpecifierSize, org.robovm.rt.bro.ptr.VoidPtr inSpecifier, org.robovm.rt.bro.ptr.IntPtr outPropertyDataSize, org.robovm.rt.bro.ptr.BooleanPtr outWritable)
- Since:
- Available in iOS 2.0 and later.
-
getProperty0
protected static OSStatus getProperty0(AudioServicesProperty inPropertyID, int inSpecifierSize, org.robovm.rt.bro.ptr.VoidPtr inSpecifier, org.robovm.rt.bro.ptr.IntPtr ioPropertyDataSize, org.robovm.rt.bro.ptr.VoidPtr outPropertyData)
- Since:
- Available in iOS 2.0 and later.
-
setProperty0
protected static OSStatus setProperty0(AudioServicesProperty inPropertyID, int inSpecifierSize, org.robovm.rt.bro.ptr.VoidPtr inSpecifier, int inPropertyDataSize, org.robovm.rt.bro.ptr.VoidPtr inPropertyData)
- Since:
- Available in iOS 2.0 and later.
-
playAlertSound
public static void playAlertSound(int systemSoundID)
- Since:
- Available in iOS 2.0 and later.
-
playSystemSound
public static void playSystemSound(int systemSoundID)
- Since:
- Available in iOS 2.0 and later.
-
addSystemSoundCompletion0
protected static OSStatus addSystemSoundCompletion0(int inSystemSoundID, NSRunLoop inRunLoop, java.lang.String inRunLoopMode, org.robovm.rt.bro.ptr.FunctionPtr inCompletionRoutine, org.robovm.rt.bro.ptr.VoidPtr inClientData)
- Since:
- Available in iOS 2.0 and later.
-
removeSystemSoundCompletion0
protected static void removeSystemSoundCompletion0(int inSystemSoundID)
- Since:
- Available in iOS 2.0 and later.
-
-