Slide 32
Slide 32 text
public staDc void init(AcDvity act, String apiKey, PosiDon p, int indPadding) ;
public staDc void init(AcDvity act, String apiKey, PosiDon p, int indPadding, boolean devMode);
public staDc void init(AcDvity act, String apiKey, PosiDon p, int indPadding, ViewGroup userLayout) ;
public staDc void init( AcDvity act, String apiKey, PosiDon p, int indPadding, PollfishSurveyReceivedListener
pollfishSurveyReceivedListener, PollfishSurveyNotAvailableListener pollfishSurveyNotAvailableListener,
PollfishSurveyCompletedListener pollfishSurveyCompletedListener, PollfishOpenedListener
pollfishOpenedListener, PollfishClosedListener pollfishClosedListener, PollfishUserNotEligibleListener
pollfishUserNotEligibleListener) ;
…
public staDc void customInit (AcDvity act, String apiKey, PosiDon p, int indPadding) ;
public staDc void customInit(AcDvity act, String apiKey, PosiDon p, int indPadding, boolean devMode) ;
public staDc void customInit (AcDvity act, String apiKey, PosiDon p, int indPadding, ViewGroup userLayout) ;
public staDc void customInit ( AcDvity act, String apiKey, PosiDon p, int indPadding,
PollfishSurveyReceivedListener pollfishSurveyReceivedListener, PollfishSurveyNotAvailableListener
pollfishSurveyNotAvailableListener, PollfishSurveyCompletedListener pollfishSurveyCompletedListener,
PollfishOpenedListener pollfishOpenedListener, PollfishClosedListener pollfishClosedListener,
PollfishUserNotEligibleListener pollfishUserNotEligibleListener) ;
…
Expose an interface for your library
Think twice - choose the right design paAern!