Android Chinese API (96) -- SoundEffectConstants

Source: Internet
Author: User

 

Preface

This chapter is about android. view. SoundEffectConstants. The version is Android 2.3 r1 and translated from "Lingyun Jian pen". You are welcome to visit his blog: http://www.cnblogs.com/lijian2010/. Thank you again "Lingyun Jian pen "! I look forward to your participation in Android Chinese API translation, contact me over140@gmail.com.

 

Statement

You are welcome to repost, but please keep the original source of the article :)

Blog Garden: http://www.cnblogs.com/

Android Chinese translation group: http://goo.gl/6vJQl

 

Body

I. Structure

Public class SoundEffectConstants extends Object

 

Java. lang. Object

Android. view. SoundEffectConstants

 

Ii. Overview

    playSoundEffect(int)The constant used to set the playing effect.

 

3. Constants

Public static final int CLICK

(Note: Click an event) constant, value 0 (0x00000000)

 

Public static final int NAVIGATION_DOWN

Note:View.FOCUS_DOWN) Constant, value 4 (0x00000004)

 

Public static final int NAVIGATION_LEFT

Note:View.FOCUS_LEFT) Constant, value 1 (0x00000001)

 

Public static final int NAVIGATION_RIGHT

Note:View.FOCUS_RIGHT) Constant, value 3 (0x00000003)

 

Public static final int NAVIGATION_UP

Note:View.FOCUS_UP) Constant, value 2 (0x00000002)

 

Iv. Public Methods

Public static intGetContantForFocusDirection(Int direction)

Obtain the constant of the voice according to different sound directions.

Parameters

The value of the direction parameter is one of the following constants:FOCUS_UP,FOCUS_DOWN,FOCUS_LEFT,FOCUS_RIGHT,FOCUS_FORWARD,FOCUS_BACKWARD.

Return Value

Proper vocal constant

 

5. Supplement

 

Article Link

Implementation of touch feedback and sound feedback

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.