IT. Expert System.

Android Reference

NullVibrator


android.os

Class NullVibrator



  • public class NullVibrator
    extends Vibrator
    Vibrator implementation that does nothing.
    • Method Detail

      • hasVibrator

        public boolean hasVibrator()
        Description copied from class: Vibrator
        Check whether the hardware has a vibrator.
        Specified by:
        hasVibrator in class Vibrator
        Returns:
        True if the hardware has a vibrator, else false.
      • vibrate

        public void vibrate(long milliseconds)
        Description copied from class: Vibrator
        Vibrate constantly for the specified period of time.

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

        Specified by:
        vibrate in class Vibrator
        Parameters:
        milliseconds - The number of milliseconds to vibrate.
      • vibrate

        public void vibrate(long[] pattern,
                   int repeat)
        Description copied from class: Vibrator
        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.

        Specified by:
        vibrate in class Vibrator
        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 void cancel()
        Description copied from class: Vibrator
        Turn the vibrator off.

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

        Specified by:
        cancel in class Vibrator


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: 10403 / 248537387. Delta: 0.03095 с