文档管理中心

您当前正在浏览HarmonyOS开发者3.0版本配套的开发者文档,对应API能力级别为API 8 Release。此版本文档已归档不再维护,推荐您使用HarmonyOS NEXT版本

API参考Java API参考ohos.miscservices.timeutilityInterfaceTimer.ITimerListener

Timer.ITimerListener

收起
自动换行
深色代码主题
复制
  1. public static interface Timer.ITimerListener
Provides a callback for a timer.

The callback is passed as a parameter when creating a timer using OneShotTimer#getTimer(Context, ITimerListener), and is invoked when the timer goes off.

Since:

1

Method Summary

展开

Modifier and Type

Method

Description

void

onTrigger​()

Called when the timer goes off.

Method Detail

onTrigger

void onTrigger​()

Called when the timer goes off.

Since:

1

搜索
请输入您想要搜索的关键词