public boolean setActive(boolean active) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setActive(active, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } @Method(selector = "setActive:error:")
/** * @since Available in iOS 6.0 and later. */ public boolean setActive(boolean active, AVAudioSessionSetActiveOptions options) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setActive(active, options, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
public boolean setActive(boolean active) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setActive(active, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } @Method(selector = "setActive:error:")
public boolean setActive(boolean active) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setActive(active, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } @Method(selector = "setActive:error:")
/** * @since Available in iOS 6.0 and later. */ public boolean setActive(boolean active, AVAudioSessionSetActiveOptions options) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setActive(active, options, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
/** * @since Available in iOS 6.0 and later. */ public boolean setActive(boolean active, AVAudioSessionSetActiveOptions options) throws NSErrorException { NSError.NSErrorPtr ptr = new NSError.NSErrorPtr(); boolean result = setActive(active, options, ptr); if (ptr.get() != null) { throw new NSErrorException(ptr.get()); } return result; } /**
session.setActive(true, AVAudioSessionSetActiveOptions.None); } catch (NSErrorException e) { plat.log().error("Unable to activate audio session: " + e);
session.setActive(true, AVAudioSessionSetActiveOptions.None); } catch (NSErrorException nse) { platform.log().warn("Unable to initialize audio session", nse);