IT. Expert System.

Android Reference



Class VolumePanel

    • Field Detail


        public static final int PLAY_SOUND_DELAY
        The delay before playing a sound. This small period exists so the user can press another key (non-volume keys, too) to have it NOT be audible.

        PhoneWindow will implement this part.

        See Also:
        Constant Field Values

        public static final int VIBRATE_DELAY
        The delay before vibrating. This small period exists so if the user is moving to silent mode, it will not emit a short vibrate (it normally would since vibrate is between normal mode and silent mode using hardware keys).
        See Also:
        Constant Field Values
      • mContext

        protected Context mContext
    • Method Detail

      • postVolumeChanged

        public void postVolumeChanged(int streamType,
                             int flags)
      • postRemoteVolumeChanged

        public void postRemoteVolumeChanged(int streamType,
                                   int flags)
      • postRemoteSliderVisibility

        public void postRemoteSliderVisibility(boolean visible)
      • postHasNewRemotePlaybackInfo

        public void postHasNewRemotePlaybackInfo()
        Called by AudioService when it has received new remote playback information that would affect the VolumePanel display (mainly volumes). The difference with postRemoteVolumeChanged(int, int) is that the handling of the posted message (MSG_REMOTE_VOLUME_UPDATE_IF_SHOWN) will only update the volume slider if it is being displayed. This special code path is due to the fact that remote volume updates arrive to AudioService asynchronously. So after AudioService has sent the volume update (which should be treated as a request to update the volume), the application will likely set a new volume. If the UI is still up, we need to refresh the display to show this new value.
      • postMasterVolumeChanged

        public void postMasterVolumeChanged(int flags)
      • postMuteChanged

        public void postMuteChanged(int streamType,
                           int flags)
      • postMasterMuteChanged

        public void postMasterMuteChanged(int flags)
      • postDisplaySafeVolumeWarning

        public void postDisplaySafeVolumeWarning()
      • onVolumeChanged

        protected void onVolumeChanged(int streamType,
                           int flags)
        Override this if you have other work to do when the volume changes (for example, vibrating, playing a sound, etc.). Make sure to call through to the superclass implementation.
      • onMuteChanged

        protected void onMuteChanged(int streamType,
                         int flags)
      • onShowVolumeChanged

        protected void onShowVolumeChanged(int streamType,
                               int flags)
      • onPlaySound

        protected void onPlaySound(int streamType,
                       int flags)
      • onStopSounds

        protected void onStopSounds()
      • onVibrate

        protected void onVibrate()
      • onRemoteVolumeChanged

        protected void onRemoteVolumeChanged(int streamType,
                                 int flags)
      • onRemoteVolumeUpdateIfShown

        protected void onRemoteVolumeUpdateIfShown()
      • onSliderVisibilityChanged

        protected void onSliderVisibilityChanged(int streamType,
                                     int visible)
        Handler for MSG_SLIDER_VISIBILITY_CHANGED Hide or show a slider
        streamType - can be a valid stream type value, or VolumePanel.STREAM_MASTER, or AudioService.STREAM_REMOTE_MUSIC
        visible -
      • onDisplaySafeVolumeWarning

        protected void onDisplaySafeVolumeWarning()
      • onFreeResources

        protected void onFreeResources()
      • handleMessage

        public void handleMessage(Message msg)
        Description copied from class: Handler
        Subclasses must implement this to receive messages.
        handleMessage in class Handler
      • onProgressChanged

        public void onProgressChanged(SeekBar seekBar,
                             int progress,
                             boolean fromUser)
        Description copied from interface: SeekBar.OnSeekBarChangeListener
        Notification that the progress level has changed. Clients can use the fromUser parameter to distinguish user-initiated changes from those that occurred programmatically.
        Specified by:
        onProgressChanged in interface SeekBar.OnSeekBarChangeListener
        seekBar - The SeekBar whose progress has changed
        progress - The current progress level. This will be in the range 0..max where max was set by ProgressBar.setMax(int). (The default value for max is 100.)
        fromUser - True if the progress change was initiated by the user.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








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

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: 243 / 159225718. Delta: 0.04168 с