本文整理匯總了TypeScript中tns-core-modules/ui/frame/frame.AndroidActivityCallbacks類的典型用法代碼示例。如果您正苦於以下問題:TypeScript AndroidActivityCallbacks類的具體用法?TypeScript AndroidActivityCallbacks怎麽用?TypeScript AndroidActivityCallbacks使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了AndroidActivityCallbacks類的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: onCreate
protected onCreate(savedInstanceState: android.os.Bundle): void {
if (!this._callbacks) {
setActivityCallbacks(this);
}
this._callbacks.onCreate(this, savedInstanceState, super.onCreate);
}
示例2: onRequestPermissionsResult
public onRequestPermissionsResult(requestCode: number, permissions: Array<String>, grantResults: Array<number>): void {
this._callbacks.onRequestPermissionsResult(this, requestCode, permissions, grantResults, undefined /*TODO: Enable if needed*/);
}
示例3: onActivityResult
protected onActivityResult(requestCode: number, resultCode: number, data: android.content.Intent): void {
this._callbacks.onActivityResult(this, requestCode, resultCode, data, super.onActivityResult);
}
示例4: onBackPressed
public onBackPressed(): void {
this._callbacks.onBackPressed(this, super.onBackPressed);
}
示例5: onDestroy
protected onDestroy(): void {
this._callbacks.onDestroy(this, super.onDestroy);
}
示例6: onStop
protected onStop(): void {
this._callbacks.onStop(this, super.onStop);
}
示例7: onStart
protected onStart(): void {
this._callbacks.onStart(this, super.onStart);
}
示例8: onSaveInstanceState
protected onSaveInstanceState(outState: android.os.Bundle): void {
this._callbacks.onSaveInstanceState(this, outState, super.onSaveInstanceState);
}