Android Open Source - appboy-android-sdk Custom Slideup Manager Listener

From Project

Back to project page appboy-android-sdk.


The source code is released under:

Copyright (c) 2014 Appboy, Inc. All rights reserved. * Use of source code or binaries contained within Appboy's Android SDK is permitted only to enable use of the Appboy platform by customers of Appb...

If you think the Android project appboy-android-sdk listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.appboy.sample;
//from www. j a v  a 2  s . c  o  m
import android.widget.Toast;
import com.appboy.models.Slideup;
import com.appboy.ui.slideups.ISlideupManagerListener;
import com.appboy.ui.slideups.SlideupCloser;
import com.appboy.ui.slideups.SlideupOperation;

public class CustomSlideupManagerListener implements ISlideupManagerListener {
  private final Activity mActivity;

  public CustomSlideupManagerListener(Activity activity) {
    mActivity = activity;

  public boolean onSlideupReceived(Slideup slideup) {
    return false;

  public SlideupOperation beforeSlideupDisplayed(Slideup slideup) {
    return SlideupOperation.DISPLAY_NOW;

  public boolean onSlideupClicked(Slideup slideup, SlideupCloser slideupCloser) {
    Toast.makeText(mActivity, "The click was ignored.", Toast.LENGTH_LONG).show();
    return true;

  public void onSlideupDismissed(Slideup slideup) {
    Toast.makeText(mActivity, "The slideup was dismissed.", Toast.LENGTH_LONG).show();

Java Source Code List