[Original] private api for controlling iphone vibration intensity and time

Source: Internet
Author: User

Note that you should introduce AudioToolbox. framework. The test passed on iOS6 and iOS7.

Private APIs are risky. Do not use them in apps.

 NSMutableDictionary* dict = NSMutableArray* arr =  [arr addObject:[NSNumber numberWithBool:YES]];  [arr addObject:[NSNumber numberWithInt:   [dict setObject:arr forKey: [dict setObject:[NSNumber numberWithFloat:] forKey:  AudioServicesPlaySystemSoundWithVibration(,nil,_buff);

 





. H

          <Foundation/Foundation.h>   + (YANGZVibePattern *)PatternWithIntensity:( @property (nonatomic)  @property (nonatomic)         - (YANGZShaking *)initWithPattern:(NSArray * - (YANGZShaking *)initWithFile:(NSString * - (YANGZShaking * - ( - (  

 

. M

             <AudioToolbox/AudioToolbox.h>    + (YANGZVibePattern *)PatternWithIntensity:(     YANGZVibePattern *pattern = [YANGZVibePattern      pattern.isV =     pattern.intensity =     pattern.time =               NSArray *     NSMutableDictionary *             - (YANGZShaking *)initWithPattern:(NSArray *              _patterns =         _buff=         _isRepeat=      - (YANGZShaking *)initWithFile:(NSString *              _patterns =         _buff=         _isRepeat=    - (YANGZShaking *              YANGZVibePattern *vibePattern = [YANGZVibePattern PatternWithIntensity:         YANGZVibePattern *pausePattern = [YANGZVibePattern PatternWithIntensity:          _patterns =         _buff=         _isRepeat=      - (   - (     - (     NSUInteger i=              NSUInteger pause =          YANGZVibePattern *pattern =          (!                      [NSThread sleepForTimeInterval:pattern.time*/         i++          (i==[_patterns count] && !                       i=i%   - ()prepareBuffWithPattern:(YANGZVibePattern *     NSMutableDictionary* dict =     NSMutableArray* arr =      [arr addObject:[NSNumber numberWithBool:YES]];          [dict setObject:arr forKey:     [dict setObject:[NSNumber numberWithFloat:pattern.intensity] forKey:     _buff =  - (     NSLog(      AudioServicesPlaySystemSoundWithVibration(  

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.