-
- All Implemented Interfaces:
public interface HmsPushConfigurationBuilderHmsPushConfigurationBuilder class is a builder used to provide configuration for Huawei Push Notifications using HMS (Huawei Mobile Services). Use PushConfiguration.hmsPushConfigurationBuilder to create a builder instance. This builder should be used to specify:
HMS Device Token
HMS Application id
-
-
Method Summary
Modifier and Type Method Description abstract HmsPushConfigurationBuilderdeviceToken(String deviceToken)Sets the HMS Device Token. abstract HmsPushConfigurationBuilderapplicationId(String applicationId)Sets the HMS Application Id. abstract PushConfigurationbuild()Creates the resulting PushConfiguration. -
-
Method Detail
-
deviceToken
abstract HmsPushConfigurationBuilder deviceToken(String deviceToken)
Sets the HMS Device Token.
- Parameters:
deviceToken- Must not be null.
-
applicationId
abstract HmsPushConfigurationBuilder applicationId(String applicationId)
Sets the HMS Application Id.
- Parameters:
applicationId- Must not be null.
-
build
abstract PushConfiguration build()
Creates the resulting PushConfiguration.
-
-
-
-