Package com.sinch.android.rtc
Interface HmsPushConfigurationBuilder
-
public interface HmsPushConfigurationBuilder
HmsPushConfigurationBuilder class is a builder used to provide configuration for Huawei Push Notifications using HMS (Huawei Mobile Services). UsePushConfiguration.hmsPushConfigurationBuilder()
to create a builder instance. This builder should be used to specify:- HMS Device Token
- HMS Application id
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HmsPushConfigurationBuilder
applicationId(java.lang.String applicationId)
Sets the HMS Application Id.PushConfiguration
build()
Creates the resulting PushConfiguration.HmsPushConfigurationBuilder
deviceToken(java.lang.String deviceToken)
Sets the HMS Device Token.
-
-
-
Method Detail
-
deviceToken
HmsPushConfigurationBuilder deviceToken(java.lang.String deviceToken)
Sets the HMS Device Token.- Parameters:
deviceToken
- Must not be null.- Returns:
- The HmsPushBuilder instance.
-
applicationId
HmsPushConfigurationBuilder applicationId(java.lang.String applicationId)
Sets the HMS Application Id.- Parameters:
applicationId
- Must not be null.- Returns:
- The HmsPushBuilder instance.
-
build
PushConfiguration build()
Creates the resulting PushConfiguration.- Returns:
- A new PushConfiguration instance.
-
-