Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/composable/usePubnubHook

Index

Functions

  • triggerAddChattingMessage(fn: any): void
  • triggerAddFakeChattingMessage(fn: any): void
  • triggerChattingMessagesHaveBeenAnalyzedSuccessfully(fn: any): void
  • triggerCouponDistributed(fn: any): void
  • triggerCouponStatusChanged(fn: any): void
  • triggerHideChattingMessage(fn: any): void
  • triggerLiveStopped(fn: any): void
  • triggerLuckyDrawDrawing(fn: any): void
  • triggerLuckyDrawEnded(fn: any): void
  • triggerPinMessageChanged(fn: any): void
  • triggerProductsChanged(fn: any): void
  • triggerPromotingProducts(fn: any): void
  • triggerShowChattingMessage(fn: any): void
  • usePubnubHook(): { onAddChattingMessage: ((cb: ((msg: { customAdminCommentStyle: unknown; message: unknown; timeToken: number }) => void)) => void); onAddFakeChattingMessage: ((cb: ((msg: { message: string; userName: string }) => void)) => void); onChattingMessagesHaveBeenAnalyzedSuccessfully: ((cb: ((msg: { message: unknown }) => void)) => void); onCouponDistributed: ((cb: ((data: CouponDistributedPayload) => void)) => void); onCouponStatusChanged: ((cb: ((couponActivity: DurationActivity) => void)) => void); onHideChattingMessage: ((cb: ((id: string) => void)) => void); onLiveStopped: ((cb: (() => void)) => void); onLuckyDrawDrawing: ((cb: (() => void)) => void); onLuckyDrawEnded: ((cb: ((drawId: number) => void)) => void); onPinMessageChanged: ((cb: ((msg: { comment_id: string; message: string }) => void)) => void); onProductsChanged: ((cb: ((productLikes: productLike[]) => void)) => void); onPromotingProducts: ((cb: ((productIds: number[]) => void)) => void); onShowChattingMessage: ((cb: ((id: string) => void)) => void) }
  • 只能放在 setup() 裡面用

    Returns { onAddChattingMessage: ((cb: ((msg: { customAdminCommentStyle: unknown; message: unknown; timeToken: number }) => void)) => void); onAddFakeChattingMessage: ((cb: ((msg: { message: string; userName: string }) => void)) => void); onChattingMessagesHaveBeenAnalyzedSuccessfully: ((cb: ((msg: { message: unknown }) => void)) => void); onCouponDistributed: ((cb: ((data: CouponDistributedPayload) => void)) => void); onCouponStatusChanged: ((cb: ((couponActivity: DurationActivity) => void)) => void); onHideChattingMessage: ((cb: ((id: string) => void)) => void); onLiveStopped: ((cb: (() => void)) => void); onLuckyDrawDrawing: ((cb: (() => void)) => void); onLuckyDrawEnded: ((cb: ((drawId: number) => void)) => void); onPinMessageChanged: ((cb: ((msg: { comment_id: string; message: string }) => void)) => void); onProductsChanged: ((cb: ((productLikes: productLike[]) => void)) => void); onPromotingProducts: ((cb: ((productIds: number[]) => void)) => void); onShowChattingMessage: ((cb: ((id: string) => void)) => void) }

    • onAddChattingMessage: ((cb: ((msg: { customAdminCommentStyle: unknown; message: unknown; timeToken: number }) => void)) => void)
        • (cb: ((msg: { customAdminCommentStyle: unknown; message: unknown; timeToken: number }) => void)): void
        • Parameters

          • cb: ((msg: { customAdminCommentStyle: unknown; message: unknown; timeToken: number }) => void)
              • (msg: { customAdminCommentStyle: unknown; message: unknown; timeToken: number }): void
              • Parameters

                • msg: { customAdminCommentStyle: unknown; message: unknown; timeToken: number }
                  • customAdminCommentStyle: unknown
                  • message: unknown
                  • timeToken: number

                Returns void

          Returns void

    • onAddFakeChattingMessage: ((cb: ((msg: { message: string; userName: string }) => void)) => void)
        • (cb: ((msg: { message: string; userName: string }) => void)): void
        • Parameters

          • cb: ((msg: { message: string; userName: string }) => void)
              • (msg: { message: string; userName: string }): void
              • Parameters

                • msg: { message: string; userName: string }
                  • message: string
                  • userName: string

                Returns void

          Returns void

    • onChattingMessagesHaveBeenAnalyzedSuccessfully: ((cb: ((msg: { message: unknown }) => void)) => void)
        • (cb: ((msg: { message: unknown }) => void)): void
        • Parameters

          • cb: ((msg: { message: unknown }) => void)
              • (msg: { message: unknown }): void
              • Parameters

                • msg: { message: unknown }
                  • message: unknown

                Returns void

          Returns void

    • onCouponDistributed: ((cb: ((data: CouponDistributedPayload) => void)) => void)
    • onCouponStatusChanged: ((cb: ((couponActivity: DurationActivity) => void)) => void)
    • onHideChattingMessage: ((cb: ((id: string) => void)) => void)
        • (cb: ((id: string) => void)): void
        • Parameters

          • cb: ((id: string) => void)
              • (id: string): void
              • Parameters

                • id: string

                Returns void

          Returns void

    • onLiveStopped: ((cb: (() => void)) => void)
        • (cb: (() => void)): void
        • Parameters

          • cb: (() => void)
              • (): void
              • Returns void

          Returns void

    • onLuckyDrawDrawing: ((cb: (() => void)) => void)
        • (cb: (() => void)): void
        • Parameters

          • cb: (() => void)
              • (): void
              • Returns void

          Returns void

    • onLuckyDrawEnded: ((cb: ((drawId: number) => void)) => void)
        • (cb: ((drawId: number) => void)): void
        • Parameters

          • cb: ((drawId: number) => void)
              • (drawId: number): void
              • Parameters

                • drawId: number

                Returns void

          Returns void

    • onPinMessageChanged: ((cb: ((msg: { comment_id: string; message: string }) => void)) => void)
        • (cb: ((msg: { comment_id: string; message: string }) => void)): void
        • Parameters

          • cb: ((msg: { comment_id: string; message: string }) => void)
              • (msg: { comment_id: string; message: string }): void
              • Parameters

                • msg: { comment_id: string; message: string }
                  • comment_id: string
                  • message: string

                Returns void

          Returns void

    • onProductsChanged: ((cb: ((productLikes: productLike[]) => void)) => void)
    • onPromotingProducts: ((cb: ((productIds: number[]) => void)) => void)
        • (cb: ((productIds: number[]) => void)): void
        • Parameters

          • cb: ((productIds: number[]) => void)
              • (productIds: number[]): void
              • Parameters

                • productIds: number[]

                Returns void

          Returns void

    • onShowChattingMessage: ((cb: ((id: string) => void)) => void)
        • (cb: ((id: string) => void)): void
        • Parameters

          • cb: ((id: string) => void)
              • (id: string): void
              • Parameters

                • id: string

                Returns void

          Returns void

Generated using TypeDoc