IT. Expert System.

Android Reference

Vibrator


android.os

Class Vibrator

    • Constructor Detail

      • Vibrator

        public Vibrator()
    • Method Detail

      • hasVibrator

        public abstract boolean hasVibrator()
        Check whether the hardware has a vibrator.
        Returns:
        True if the hardware has a vibrator, else false.
      • vibrate

        public abstract void vibrate(long milliseconds)
        Vibrate constantly for the specified period of time.

        This method requires the caller to hold the permission android.Manifest.permission#VIBRATE.

        Parameters:
        milliseconds - The number of milliseconds to vibrate.
      • vibrate

        public abstract void vibrate(long[] pattern,
                   int repeat)
        Vibrate with a given pattern.

        Pass in an array of ints that are the durations for which to turn on or off the vibrator in milliseconds. The first value indicates the number of milliseconds to wait before turning the vibrator on. The next value indicates the number of milliseconds for which to keep the vibrator on before turning it off. Subsequent values alternate between durations in milliseconds to turn the vibrator off or to turn the vibrator on.

        To cause the pattern to repeat, pass the index into the pattern array at which to start the repeat, or -1 to disable repeating.

        This method requires the caller to hold the permission android.Manifest.permission#VIBRATE.

        Parameters:
        pattern - an array of longs of times for which to turn the vibrator on or off.
        repeat - the index into pattern at which to repeat, or -1 if you don't want to repeat.
      • cancel

        public abstract void cancel()
        Turn the vibrator off.

        This method requires the caller to hold the permission android.Manifest.permission#VIBRATE.



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: 281 / . Delta: 0.01858 с