A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/cast/docs/reference/ios/interface_g_c_k_u_i_device_volume_controller below:

GCKUIDeviceVolumeController Class | Cast | Google for Developers

GCKUIDeviceVolumeController Class

Stay organized with collections Save and categorize content based on your preferences.

A controller for UI views that are used to control or display the volume and mute state of a Cast receiver.

The calling application registers its volume-related UI controls with the controller by setting the appropriate properties. The controller then responds to touch events on the controls by issuing the appropriate volume commands to the receiver, and updates the controls based on status information received from the receiver. The controller automatically enables and disables the UI controls as appropriate for the current session and receiver state.

Since
3.0

Inherits NSObject.

(instancetype)  - init   Designated initializer. More...
  (void)  - setVolume:   A convenience method for changing the receiver's volume. More...
  (void)  - setMuted:   A convenience method for changing the receiver's mute state. More...
  (void)  - volumeUp   A convenience method for increasing the receiver's volume by the volume increment. More...
  (void)  - volumeDown   A convenience method for decreasing the receiver's volume by the volume increment. More...
  (void)  - toggleMuted   A convenience method for toggling the mute state. More...
  - (void) setVolume: (float)  volume

A convenience method for changing the receiver's volume.

Delegates to the currently active GCKSession object.

Parameters
volume The new volume. Must be a value in the range [0.0, 1.0].
- (void) setMuted: (BOOL)  muted

A convenience method for changing the receiver's mute state.

Delegates to the currently active GCKSession object.

Parameters
muted The new mute state.

A convenience method for increasing the receiver's volume by the volume increment.

Delegates to the currently active GCKSession object.

A convenience method for decreasing the receiver's volume by the volume increment.

Delegates to the currently active GCKSession object.

A convenience method for toggling the mute state.

Delegates to the currently active GCKSession object.

- (UIButton*) volumeUpButton readwritenonatomicweak

A "volume up" button.

When the button is tapped, the receiver's volume is increased by the volume increment. The button will be disabled if there is no session currently active or if the current session does not support volume adjustment.

- (UIButton*) volumeDownButton readwritenonatomicweak

A "volume down" button.

When the button is tapped, the receiver's volume is decreased by the volume increment. The button will be disabled if there is no session currently active or if the current session does not support volume adjustment.

- (UISlider*) volumeSlider readwritenonatomicweak

A slider for displaying and changing the current receiver volume.

When the slider's value is changed by the user, the volume is updated on the receiver. When a receiver status is received that indicates a change in the receiver's volume, the slider value is updated accordingly. The slider will be disabled if there is no session currently active or if the current session does not support volume adjustment.

A switch for toggling the receiver's mute state.

When the switch is toggled, the mute state is updated on the receiver. When a receiver status is received that indicates a change in the receiver's mute state, the switch is updated accordingly. The switch will be disabled if there is no session currently active or if the current session does not support muting.

A toggle button for muting/unmuting the receiver.

The caller should set appropriate "muted" and "unmuted" icons for the button's GCKUIButtonStateMuteOn and GCKUIButtonStateMuteOff states, respectively. The button's state is automatically updated to reflect the current mute state on the receiver. When the button is tapped, the mute state is updated on the receiver. The button will be disabled if there is no session currently active or if the current session does not support volume muting.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-18 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `GCKUIDeviceVolumeController` manages UI elements for controlling a Cast receiver's volume and mute state, responding to user interaction and updating the UI based on receiver status."],["It provides convenience methods to set volume, mute state, increase/decrease volume, and toggle mute, delegating these actions to the active Cast session."],["Developers can link their UI controls (buttons, sliders, switches) to the controller, which automatically manages their enabled/disabled state based on the session and receiver capabilities."],["UI controls linked to the `GCKUIDeviceVolumeController` are automatically updated to reflect the current receiver volume and mute state."],["The controller simplifies Cast receiver volume and mute management by handling the interaction between UI elements and the underlying Cast session."]]],["The `GCKUIDeviceVolumeController` manages UI controls for a Cast receiver's volume and mute state. It initializes and registers UI elements like volume up/down buttons, a volume slider, and a mute switch/button. This controller responds to user interactions by sending volume commands to the receiver and updating the UI based on receiver status. Key actions include setting, increasing, decreasing volume, and toggling the mute state via corresponding methods. The controller automatically handles UI control enablement based on session and receiver states.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4