Skip to content
Discussion options

You must be logged in to vote

@qianyunrumo listener 你需要自己强引用,从你提供的描述过一段时间就会无效应该是WeakRef被GC释放了

  viewController.addListener(
    new WeakRef<PAGViewListener>(
      new listener(
        this.start,
        this.cancel,
        this.end,
        this.update
      )
    )
  );

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@qianyunrumo
Comment options

@qianyunrumo
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@qianyunrumo
Comment options

Answer selected by qianyunrumo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants