You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.8 KiB
58 lines
1.8 KiB
/*
|
|
* Copyright (c) 2015 - present Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <Foundation/NSDate.h>
|
|
|
|
@class NSInvocation;
|
|
|
|
@interface NSTimer : NSObject {
|
|
NSTimeInterval _interval;
|
|
id _info;
|
|
id _target;
|
|
SEL _selector;
|
|
unsigned _repeats : 2;
|
|
unsigned _timer_filler : 6;
|
|
@public
|
|
NSDate* _fireDate;
|
|
BOOL _is_valid;
|
|
}
|
|
|
|
+ (NSTimer*)scheduledTimerWithTimeInterval:(NSTimeInterval)ti
|
|
invocation:(NSInvocation*)invocation
|
|
repeats:(BOOL)f;
|
|
+ (NSTimer*)scheduledTimerWithTimeInterval:(NSTimeInterval)ti
|
|
target:(id)object
|
|
selector:(SEL)selector
|
|
userInfo:(id)info
|
|
repeats:(BOOL)f;
|
|
+ (NSTimer*)timerWithTimeInterval:(NSTimeInterval)ti
|
|
invocation:(NSInvocation*)invocation
|
|
repeats:(BOOL)f;
|
|
+ (NSTimer*)timerWithTimeInterval:(NSTimeInterval)ti
|
|
target:(id)object
|
|
selector:(SEL)selector
|
|
userInfo:(id)info
|
|
repeats:(BOOL)f;
|
|
|
|
- (void)fire;
|
|
- (NSDate*)fireDate;
|
|
- (id)initWithFireDate:(NSDate*)date
|
|
interval:(NSTimeInterval)seconds
|
|
target:(id)target
|
|
selector:(SEL)aSelector
|
|
userInfo:(id)userInfo
|
|
repeats:(BOOL)repeats;
|
|
- (void)invalidate;
|
|
- (BOOL)isValid;
|
|
- (void)setFireDate:(NSDate*)date;
|
|
- (NSTimeInterval)timeInterval;
|
|
- (id)userInfo;
|
|
|
|
@end
|