IT. Expert System.

Android Reference

AudioManager.OnAudioFocusChangeListener


android.media

Interface AudioManager.OnAudioFocusChangeListener

  • Enclosing class:
    AudioManager


    public static interface AudioManager.OnAudioFocusChangeListener
    Interface definition for a callback to be invoked when the audio focus of the system is updated.
    • Method Summary

      Methods
      Modifier and Type Method and Description
      void onAudioFocusChange(int focusChange)
      Called on the listener to notify it the audio focus for this listener has been changed.
    • Method Detail

      • onAudioFocusChange

        void onAudioFocusChange(int focusChange)
        Called on the listener to notify it the audio focus for this listener has been changed. The focusChange value indicates whether the focus was gained, whether the focus was lost, and whether that loss is transient, or whether the new focus holder will hold it for an unknown amount of time. When losing focus, listeners can use the focus change information to decide what behavior to adopt when losing focus. A music player could for instance elect to lower the volume of its music stream (duck) for transient focus losses, and pause otherwise.
        Parameters:
        focusChange - the type of focus change, one of AudioManager.AUDIOFOCUS_GAIN, AudioManager.AUDIOFOCUS_LOSS, AudioManager.AUDIOFOCUS_LOSS_TRANSIENT and AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK.


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: 10 / 158748722. Delta: 0.02229 с