• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java AppRate类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中fr.nicolaspomepuy.discreetapprate.AppRate的典型用法代码示例。如果您正苦于以下问题:Java AppRate类的具体用法?Java AppRate怎么用?Java AppRate使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AppRate类属于fr.nicolaspomepuy.discreetapprate包,在下文中一共展示了AppRate类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: onCreate

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	addPreferencesFromResource(R.layout.main);

       mDPM = (DevicePolicyManager) getSystemService(Context.DEVICE_POLICY_SERVICE);
       mDeviceAdmin = new ComponentName(this, DislockDeviceAdminReciever.class);
       mForceLockPreference = (CheckBoxPreference) findPreference("key_force_lock");
       mForceLockPreference.setOnPreferenceChangeListener(this);

       PebbleLockerApplication.getBus().register(this);
       startService(new Intent(this, AndroidWearDetectionService.class));

       AppRate.with(this)
               .text(R.string.rate)
               .initialLaunchCount(3)
               .retryPolicy(RetryPolicy.EXPONENTIAL)
               .checkAndShow();
}
 
开发者ID:lkorth,项目名称:dislock,代码行数:19,代码来源:PebbleLocker.java


示例2: onStart

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
@Override
public void onStart() {
    super.onStart();

    AppRate.with(getActivity())
            .text(R.string.rate_app)
            .initialLaunchCount(3)
            .retryPolicy(RetryPolicy.EXPONENTIAL)
            .checkAndShow();
}
 
开发者ID:lkorth,项目名称:photo-paper,代码行数:11,代码来源:SettingsFragment.java


示例3: check

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
public static void check(final Activity activity) {
    AppRate.with(activity)
            .listener(new CountingOnShowListener(activity))
            .retryPolicy(RetryPolicy.EXPONENTIAL)
            .view(R.layout.view_app_rate)
            .text(R.string.app_rate_rate_us)
            .initialLaunchCount(LAUNCHES_UNTIL_PROMPT)
            .minInterval(MIN_WAIT_BETWEEN_DISPLAYS)
            .debug(BuildConfig.DEBUG)
            .checkAndShow();
}
 
开发者ID:TruckMuncher,项目名称:TruckMuncher-Android,代码行数:12,代码来源:RateUs.java


示例4: onRateAppShowing

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
@Override
public void onRateAppShowing(final AppRate appRate, View view) {
    shownCount.increment();
    view.findViewById(R.id.app_rate_never).setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(@NonNull View v) {
            appRate.hide();
            appRate.neverShowAgain();
            // TODO Analytics: log the show count
        }
    });
}
 
开发者ID:TruckMuncher,项目名称:TruckMuncher-Android,代码行数:13,代码来源:RateUs.java


示例5: onFsScanComplete

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Subscribe
public void onFsScanComplete(@Nonnull Optional<Tree<FilesystemSummary>> node) {
    String message = node.isPresent()
            ? String.format(UK, "Found %d files (%dmb).", node.get().getValue().getSubTreeCount(), node.get().getValue().getSubTreeBytes() / (int) Math.pow(1024, 2))
            : "Failed to list files.";

    Toast.makeText(getActivity().getApplicationContext(), message, LENGTH_LONG).show();

    if (!node.isPresent()) return;

    AsyncTask<Tree<DisplayNode>, Void, Bitmap> draw = new SimpleAsyncTask<>(
            i -> Cushions.draw(i, imageView.getWidth(), imageView.getHeight()),
            o -> {
                imageView.setImageDrawable(new BitmapDrawable(getResources(), o));

                imageView.setVisibility(VISIBLE);
                loadingSpinner.setVisibility(INVISIBLE);

                AppRate.with(getActivity())
                        .initialLaunchCount(3)
                        .retryPolicy(RetryPolicy.INCREMENTAL)
                        .checkAndShow();
            });

    AsyncTask<Tree<FilesystemSummary>, Void, Tree<DisplayNode>> pack = new SimpleAsyncTask<>(
            i -> SquarifiedPacking.pack(i, new Rect(0, 0, imageView.getWidth(), imageView.getHeight())),
            o -> {
                imageView.setOnTouchListener((v, event) -> {
                    if (event.getAction() == ACTION_DOWN) handleClick(o, event);
                    return true;
                });

                draw.execute(o);
            });

    pack.execute(node.get());
}
 
开发者ID:FlightOfStairs,项目名称:ADirStat,代码行数:39,代码来源:TreeFragment.java


示例6: onCreate

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    setContentView(R.layout.activity_kentkart_information);

    Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
    if (toolbar != null) {
        setSupportActionBar(toolbar);
    }

    Bundle args = getIntent().getExtras();
    if (args != null) {
        kentKartName       = args.getString(Constants.KENT_KART_NAME);
        kentKartNumber     = args.getString(Constants.KENT_KART_NUMBER);
        kentKartRegionCode = args.getString(Constants.KENT_KART_REGION_CODE);
        isStartedWithNfc   = args.getBoolean(Constants.HAS_NFC, false);
    }

    ActionBar actionBar = getSupportActionBar();
    actionBar.setHomeButtonEnabled(true);
    actionBar.setDisplayHomeAsUpEnabled(true);
    updateTitle(actionBar);

    progressWidget = (ProgressWidget) findViewById(R.id.progressWidget_kentKartInformation);

    lastUseSectionLayout = (RelativeLayout) findViewById(R.id.relativeLayout_kentKartInformationActivity_section_lastUse);
    lastLoadSectionLayout = (RelativeLayout) findViewById(R.id.relativeLayout_kentKartInformationActivity_section_lastLoad);

    balanceTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_balance);
    lastUseAmountTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_lastUseAmount);
    lastUseTimeTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_lastUseTime);
    connectedTransportTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_connectedTransport);
    lastLoadAmountTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_lastLoadAmount);
    lastLoadTimeTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_lastLoadTime);

    TextView balanceTLTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_balanceTL);
    TextView lastUseTLTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_lastUseAmountTL);
    TextView lastLoadTLTextView = (TextView) findViewById(R.id.textView_kentKartInformationActivity_lastLoadAmountTL);
    Typeface typeface = Typeface.createFromAsset(getAssets(), "TL.ttf");
    balanceTLTextView.setTypeface(typeface);
    lastUseTLTextView.setTypeface(typeface);
    lastLoadTLTextView.setTypeface(typeface);

    nfcAdapter = NFCUtils.get(getApplicationContext()).getAdapter();

    if (savedInstanceState != null) {
        restoreInstanceState(savedInstanceState);
    }

    handleIntent(getIntent());

    AppRate
        .with(this)
        .initialLaunchCount(Constants.RATE_LAUNCH_COUNT)
        .text(R.string.rate_app)
        .retryPolicy(RetryPolicy.INCREMENTAL)
        .checkAndShow();
}
 
开发者ID:mehmetakiftutuncu,项目名称:MyKentKart,代码行数:60,代码来源:KentKartInformationActivity.java


示例7: onCreate

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    AppRate.initExceptionHandler(this);
}
 
开发者ID:PomepuyN,项目名称:discreet-app-rate,代码行数:6,代码来源:SampleApplication.java


示例8: onPause

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
@Override
protected void onPause() {
    super.onPause();
    AppRate.with(this).debug(true).endMonitoring();
}
 
开发者ID:PomepuyN,项目名称:discreet-app-rate,代码行数:6,代码来源:MainActivity.java


示例9: onResume

import fr.nicolaspomepuy.discreetapprate.AppRate; //导入依赖的package包/类
@Override
protected void onResume() {
    super.onResume();
    AppRate.with(this).debug(true).startMonitoring();
}
 
开发者ID:PomepuyN,项目名称:discreet-app-rate,代码行数:6,代码来源:MainActivity.java



注:本文中的fr.nicolaspomepuy.discreetapprate.AppRate类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java CorsFilter类代码示例发布时间:2022-05-23
下一篇:
Java Validator类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap