# circleTimer **Repository Path**: HarmonyOS-tpc/circleTimer ## Basic Information - **Project Name**: circleTimer - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2021-09-17 - **Last Updated**: 2023-04-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CircleTimer ## Introduction: A CircleTimer with Animation and Timers. ## Usage Instructions: ###### xml ###### java timer = (CircleTimer) findComponentById(ResourceTable.Id_main_timer); timer.setMaximumTime(3600); // 60 minute timer.setInitPosition(2000); ###### Start Timer: timer.start(); ###### Stop Timer : timer.stop(); ###### End Timer Linstener: timer.setBaseTimerEndedListener(new CircleTimer.baseTimerEndedListener() { @Override public void OnEnded() { ToastDialog t = new ToastDialog(MainAbility.this); t.setText("timer End"); t.setDuration(100000); t.show(); } }); ## Installation instruction Method 1: Generate the .har package through the library and add the .har package to the libs folder. Add the following code to the entry gradle: ``` implementation fileTree (dir: 'libs', include: ['*.jar', '*.har']) ``` Method 2: For using as a library project, add the following code to the entry gradle: ``` implementation project(path: ': library) ``` Method 3: For using circleTimer from the remote repository, add the below dependency in "entry" build.gradle. ``` implementation 'io.openharmony.tpc.thirdlib:circleTimer:1.0.0' ```