FWToastPluginImpl


@interface FWToastPluginImpl : NSObject <FWToastPlugin>

默认吐司插件

  • 单例模式

    Declaration

    Objective-C

    @property (class, nonatomic, readonly) NS_SWIFT_NAME(shared) FWToastPluginImpl *sharedInstance;
  • 显示吐司时是否执行淡入动画,默认YES

    Declaration

    Objective-C

    @property (nonatomic) BOOL fadeAnimated;
  • 吐司自动隐藏时间,默认2.0

    Declaration

    Objective-C

    @property (nonatomic) NSTimeInterval delayTime;
  • 吐司自定义句柄,show方法自动调用

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^) (FWToastView *_Nonnull __strong) customBlock;
  • 吐司重用句柄,show方法重用时自动调用

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) void (^) (FWToastView *_Nonnull __strong) reuseBlock;
  • 默认加载吐司文本句柄

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSAttributedString *_Nullable (^)(void) defaultLoadingText;
  • 默认进度条吐司文本句柄

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSAttributedString *_Nullable (^)(void) defaultProgressText;
  • 默认消息吐司文本句柄

    Declaration

    Objective-C

    @property (nonatomic, copy, nullable) NSAttributedString *_Nullable (^)(FWToastStyle) defaultMessageText;