IT. Expert System.

Android Reference

MediaRouter.VolumeCallback


android.media

Class MediaRouter.VolumeCallback

  • Enclosing class:
    MediaRouter


    public abstract static class MediaRouter.VolumeCallback
    extends Object
    Interface for receiving events about volume changes. All methods of this interface will be called from the application's main thread.

    A VolumeCallback will only receive events relevant to routes that the callback was registered for.

    See Also:
    UserRouteInfo#setVolumeCallback(VolumeCallback)
    • Constructor Detail

      • MediaRouter.VolumeCallback

        public MediaRouter.VolumeCallback()
    • Method Detail

      • onVolumeUpdateRequest

        public abstract void onVolumeUpdateRequest(MediaRouter.RouteInfo info,
                                 int direction)
        Called when the volume for the route should be increased or decreased.
        Parameters:
        info - the route affected by this event
        direction - an integer indicating whether the volume is to be increased (positive value) or decreased (negative value). For bundled changes, the absolute value indicates the number of changes in the same direction, e.g. +3 corresponds to three "volume up" changes.
      • onVolumeSetRequest

        public abstract void onVolumeSetRequest(MediaRouter.RouteInfo info,
                              int volume)
        Called when the volume for the route should be set to the given value
        Parameters:
        info - the route affected by this event
        volume - an integer indicating the new volume value that should be used, always between 0 and the value set by MediaRouter.UserRouteInfo.setVolumeMax(int).


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 242 / 158697751. Delta: 0.09223 с