GCKSessionTraits Class

GCKSessionTraits Class Reference

Overview

An object describing the traits and capabilities of a session.

Since
3.0

Inherits NSObject, <NSCopying>, and <NSSecureCoding>.

Instance Method Summary

Designated initializer. More...
(instancetype) 
- init
Convenience initializer. More...
(BOOL) 
Whether this is a fixed volume device. More...

Property Summary

float 
The minimum volume value. More...
float 
The maximum volume value. More...
float 
The volume increment for up/down volume adjustments. More...
Whether the audio can be muted. More...

Method Detail

- (instancetype) initWithMinimumVolume: (float)  minimumVolume
maximumVolume: (float)  maximumVolume
volumeIncrement: (float)  volumeIncrement
supportsMuting: (BOOL)  supportsMuting

Designated initializer.

- (instancetype) init

Convenience initializer.

Sets the volume range to [0.0, 1.0], the volume increment to 0.05 (5%), and the supportsMuting flag to YES .

- (BOOL) isFixedVolume

Whether this is a fixed volume device.

Property Detail

- (float) minimumVolume
read nonatomic assign

The minimum volume value.

Must be non-negative and less than or equal to the maximum volume.

- (float) maximumVolume
read nonatomic assign

The maximum volume value.

Must be non-negative and greater than or equal to the minimum volume.

- (float) volumeIncrement
read nonatomic assign

The volume increment for up/down volume adjustments.

May be 0 to indicate fixed volume. Must be non-negative and less than or equal to the difference between the maximum volume and minimum volume.

- (BOOL) supportsMuting
read nonatomic assign

Whether the audio can be muted.

Create a Mobile Website
View Site in Mobile | Classic
Share by: