이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

Android

This article explains how to replace the incoming call ringtone of TUICallKit, which is divided into application ringtone and offline push ringtone.

Setting application Ringtone

There are two ways to set the application ringtone:

1. Replace Audio File

If you integrate the TUICallKit component via source code dependency, you can replace the audio files in the tuicallkit-kt/src/main/res/raw folder to customize the ringtone.
File Name
Use
phone_dialing.mp3
Ringtone when initiating a call
phone_ringing.mp3
Ringtone when receiving a call

2. Call Ringtone Interface

You can also customize the incoming call ringtone through the setCallingBell interface.
Kotlin
Java
TUICallKit.createInstance(context).setCallingBell(filePath)
TUICallKit.createInstance(context).setCallingBell(filePath);

Set Mute Mode

If you do not need the phone to ring, you can enable the mute mode using the enableMuteMode interface.
Kotlin
Java
TUICallKit.createInstance(context).enableMuteMode(true)
TUICallKit.createInstance(context).enableMuteMode(true);

Set Offline Push Ringtone

If you want to customize the ringtone, you can replace the file tuicallkit-kt/src/main/res/raw/phone_ringing.mp3.
Note:
After replacing the ringtone, the new ringtone will be used regardless of whether the application is in the foreground, background, or offline.
After replacement, the ringtone for invitations received on other manufacturers' phones will also be the new ringtone.