-
Notifications
You must be signed in to change notification settings - Fork 275
5. Queuing multiple FancyShowCaseView instances
Faruk Toptaş edited this page Oct 8, 2017
·
1 revision
final FancyShowCaseView fancyShowCaseView1 = new FancyShowCaseView.Builder(this)
.title("First Queue Item")
.focusOn(mButton1)
.build();
final FancyShowCaseView fancyShowCaseView2 = new FancyShowCaseView.Builder(this)
.title("Second Queue Item")
.focusOn(mButton2)
.build();
final FancyShowCaseView fancyShowCaseView3 = new FancyShowCaseView.Builder(this)
.title("Third Queue Item")
.focusOn(mButton3)
.build();
mQueue = new FancyShowCaseQueue()
.add(fancyShowCaseView1)
.add(fancyShowCaseView2)
.add(fancyShowCaseView3);
mQueue.show();
Cancels all further FancyShowCaseView
instances.
Boolean parameter hides the current shown FancyShowCaseView
.
mQueue.cancel(true);
onComplete()
method triggers after all queue items are shown.
mQueue.setCompleteListener(new OnCompleteListener() {
@Override
public void onComplete() {
Log.v(TAG, "All FancyShowCaseView instances shown.");
}
});