当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript frame.AndroidActivityCallbacks类代码示例

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


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

示例1: onCreate

    protected onCreate(savedInstanceState: android.os.Bundle): void {
        if (!this._callbacks) {
            setActivityCallbacks(this);
        }

        this._callbacks.onCreate(this, savedInstanceState, super.onCreate);
    }
开发者ID:CedarLogic,项目名称:NativeScript,代码行数:7,代码来源:activity.android.ts

示例2: onCreate

    protected onCreate(savedInstanceState: any): void { // android.os.Bundle
        // Set isNativeScriptActivity in onCreate (as done in the original NativeScript activity code).
        // The JS constructor might not be called because the activity is created from Android.
        this.isNativeScriptActivity = true;

        if (!this._callbacks) {
            setActivityCallbacks(this);
        }

        this._callbacks.onCreate(this, savedInstanceState, super.onCreate);
    }
开发者ID:NativeScript,项目名称:nativescript-dev-webpack,代码行数:11,代码来源:activity.android.ts

示例3: onActivityResult

 protected onActivityResult(requestCode: number, resultCode: number, data: any): void { // android.content.Intent
     this._callbacks.onActivityResult(this, requestCode, resultCode, data, super.onActivityResult);
 }
开发者ID:NativeScript,项目名称:nativescript-dev-webpack,代码行数:3,代码来源:activity.android.ts

示例4: onRequestPermissionsResult

 public onRequestPermissionsResult(requestCode: number, permissions: Array<String>, grantResults: Array<number>): void {
     this._callbacks.onRequestPermissionsResult(this, requestCode, permissions, grantResults, undefined /*TODO: Enable if needed*/);
 }
开发者ID:NativeScript,项目名称:nativescript-dev-webpack,代码行数:3,代码来源:activity.android.ts

示例5: onBackPressed

 public onBackPressed(): void {
     this._callbacks.onBackPressed(this, super.onBackPressed);
 }
开发者ID:NativeScript,项目名称:nativescript-dev-webpack,代码行数:3,代码来源:activity.android.ts

示例6: onDestroy

 protected onDestroy(): void {
     this._callbacks.onDestroy(this, super.onDestroy);
 }
开发者ID:NativeScript,项目名称:nativescript-dev-webpack,代码行数:3,代码来源:activity.android.ts

示例7: onStop

 protected onStop(): void {
     this._callbacks.onStop(this, super.onStop);
 }
开发者ID:NativeScript,项目名称:nativescript-dev-webpack,代码行数:3,代码来源:activity.android.ts

示例8: onStart

 protected onStart(): void {
     this._callbacks.onStart(this, super.onStart);
 }
开发者ID:NativeScript,项目名称:nativescript-dev-webpack,代码行数:3,代码来源:activity.android.ts

示例9: onSaveInstanceState

 protected onSaveInstanceState(outState: any): void { // android.os.Bundle
     this._callbacks.onSaveInstanceState(this, outState, super.onSaveInstanceState);
 }
开发者ID:NativeScript,项目名称:nativescript-dev-webpack,代码行数:3,代码来源:activity.android.ts


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