Ejemplo n.º 1
0
        /// <summary>
        /// Instantiate DonationsFragment.
        /// </summary>
        /// <param name="debug">               You can use BuildConfig.DEBUG to propagate the debug flag from your app to the Donations library </param>
        /// <param name="googleEnabled">       Enabled Google Play donations </param>
        /// <param name="googlePubkey">        Your Google Play public key </param>
        /// <param name="googleCatalog">       Possible item names that can be purchased from Google Play </param>
        /// <param name="googleCatalogValues"> Values for the names </param>
        /// <param name="paypalEnabled">       Enable PayPal donations </param>
        /// <param name="paypalUser">          Your PayPal email address </param>
        /// <param name="paypalCurrencyCode">  Currency code like EUR. See here for other codes:
        ///                            https://developer.paypal.com/webapps/developer/docs/classic/api/currency_codes/#id09A6G0U0GYK </param>
        /// <param name="paypalItemName">      Display item name on PayPal, like "Donation for NTPSync" </param>
        /// <param name="flattrEnabled">       Enable Flattr donations </param>
        /// <param name="flattrProjectUrl">    The project URL used on Flattr </param>
        /// <param name="flattrUrl">           The Flattr URL to your thing. NOTE: Enter without http:// </param>
        /// <param name="bitcoinEnabled">      Enable bitcoin donations </param>
        /// <param name="bitcoinAddress">      The address to receive bitcoin </param>
        /// <returns> DonationsFragment </returns>
        public static DonationsFragment newInstance(bool debug, bool googleEnabled, string googlePubkey, string[] googleCatalog, string[] googleCatalogValues, bool paypalEnabled, string paypalUser, string paypalCurrencyCode, string paypalItemName, bool flattrEnabled, string flattrProjectUrl, string flattrUrl, bool bitcoinEnabled, string bitcoinAddress)
        {
            DonationsFragment donationsFragment = new DonationsFragment();
            Bundle            args = new Bundle();

            args.PutBoolean(ARG_DEBUG, debug);

            args.PutBoolean(ARG_GOOGLE_ENABLED, googleEnabled);
            args.PutString(ARG_GOOGLE_PUBKEY, googlePubkey);
            args.PutStringArray(ARG_GOOGLE_CATALOG, googleCatalog);
            args.PutStringArray(ARG_GOOGLE_CATALOG_VALUES, googleCatalogValues);

            args.PutBoolean(ARG_PAYPAL_ENABLED, paypalEnabled);
            args.PutString(ARG_PAYPAL_USER, paypalUser);
            args.PutString(ARG_PAYPAL_CURRENCY_CODE, paypalCurrencyCode);
            args.PutString(ARG_PAYPAL_ITEM_NAME, paypalItemName);

            args.PutBoolean(ARG_FLATTR_ENABLED, flattrEnabled);
            args.PutString(ARG_FLATTR_PROJECT_URL, flattrProjectUrl);
            args.PutString(ARG_FLATTR_URL, flattrUrl);

            args.PutBoolean(ARG_BITCOIN_ENABLED, bitcoinEnabled);
            args.PutString(ARG_BITCOIN_ADDRESS, bitcoinAddress);

            donationsFragment.Arguments = args;
            return(donationsFragment);
        }
Ejemplo n.º 2
0
 public OnTouchListenerAnonymousInnerClassHelper(DonationsFragment outerInstance)
 {
     this.outerInstance = outerInstance;
 }
Ejemplo n.º 3
0
 public OnConsumeFinishedListenerAnonymousInnerClassHelper(DonationsFragment outerInstance)
 {
     this.outerInstance = outerInstance;
 }
Ejemplo n.º 4
0
 public WebViewClientAnonymousInnerClassHelper(DonationsFragment outerInstance, FrameLayout mLoadingFrame, WebView mFlattrWebview)
 {
     this.outerInstance  = outerInstance;
     this.mLoadingFrame  = mLoadingFrame;
     this.mFlattrWebview = mFlattrWebview;
 }
Ejemplo n.º 5
0
 public OnClickListenerAnonymousInnerClassHelper4(DonationsFragment outerInstance, AlertDialog.Builder dialog)
 {
     this.outerInstance = outerInstance;
     this.dialog        = dialog;
 }