//
//  XXGSendCodeButton.h
//  XXGPlayKit
//
//  Created by apple on 2025/3/16.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface XXGSendCodeButton : UIButton

/// 按钮点击后调用的回调（例如：发送验证码请求）
@property (nonatomic, copy) void(^xxpk_sendCodeAction)(void);

/// 倒计时时长，默认60秒
@property (nonatomic, assign) NSInteger xxpk_countdownDuration;

/// 开始倒计时（调用后按钮将进入倒计时状态）
- (void)xxpk_startCountdown;

/// 停止倒计时，恢复按钮状态
- (void)xxpk_stopCountdown;

@end

NS_ASSUME_NONNULL_END
