AgentforceConfiguration

class AgentforceConfiguration

Configuration for Agentforce SDK.

Builder for AgentforceConfiguration.

Builder for AgentforceConfiguration.

PropertyTypeDescription
agentIdString?Unique identifier for the agent
applicationApplication?Android application context
authCredentialProviderAgentforceAuthCredentialProviderProvides authentication tokens
cameraUriProviderAgentforceCameraUriProvider?Provides URIs for camera captures
connectionInfoAgentforceConnectionInfo?Connection details for the SDK
dataProviderDataProvider?Custom data provider for content
delegateAgentforceUIDelegate?Custom UI delegate for advanced customization
featureFlagSettingsAgentforceFeatureFlagSettings?Feature flag settings for the SDK
instrumentationHandlerAgentforceInstrumentationHandler?Handles analytics and instrumentation events
isVoiceModeEnabledBooleanWhether voice mode is enabled
loggerLogger?Custom logger for SDK events
navigationNavigation?Custom navigation handler
networkNetwork?Custom network implementation
onboardingManagerAgentforceOnboardingManager?Manages onboarding flow
permissionPermissions?Permission management interface
readbackManagingAgentforceReadbackManaging?Manages readback functionality
salesforceDomainString?Salesforce instance domain
serviceApiURLString?Service API URL
themeManagerAgentforceThemeManagerTheme management for UI components
userUser?User information interface
viewProviderAgentforceViewProvider?Provides custom views for UI components
voiceManagingAgentforceVoiceManaging?Manages voice functionality
MethodParametersReturn TypeDescription
build()NoneAgentforceConfigurationBuilds the configuration
setAgentId(id: String?)id: String?BuilderSets the agent ID
setApplication(application: Application?)application: Application?BuilderSets the application context
setCameraUriProvider(cameraUriProvider: AgentforceCameraUriProvider?)cameraUriProvider: AgentforceCameraUriProvider?BuilderSets the camera URI provider
setConnectionInfo(connectionInfo: AgentforceConnectionInfo?)connectionInfo: AgentforceConnectionInfo?BuilderSets connection information
setDataProvider(dataProvider: DataProvider?)dataProvider: DataProvider?BuilderSets the data provider
setDelegate(delegate: AgentforceUIDelegate?)delegate: AgentforceUIDelegate?BuilderSets the UI delegate
setFeatureFlagSettings(flags: AgentforceFeatureFlagSettings)flags: AgentforceFeatureFlagSettingsBuilderSets feature flag settings
setInstrumentationHandler(handler: AgentforceInstrumentationHandler?)handler: AgentforceInstrumentationHandler?BuilderSets the instrumentation handler
setLogger(logger: Logger?)logger: Logger?BuilderSets the logger
setNavigation(navigation: Navigation?)navigation: Navigation?BuilderSets the navigation handler
setNetwork(network: Network?)network: Network?BuilderSets the network implementation
setOnboardingManager(onboardingManager: AgentforceOnboardingManager?)onboardingManager: AgentforceOnboardingManager?BuilderSets the onboarding manager
setPermission(permission: Permissions?)permission: Permissions?BuilderSets the permission interface
setReadbackManaging(readbackManaging: AgentforceReadbackManaging?)readbackManaging: AgentforceReadbackManaging?BuilderSets the readback manager
setSalesforceDomain(domain: String?)domain: String?BuilderSets the Salesforce domain
setServiceApiURL(serviceApiURL: String?)serviceApiURL: String?BuilderSets the service API URL
setThemeManager(themeManager: AgentforceThemeManager?)themeManager: AgentforceThemeManager?BuilderSets the theme manager
setUser(user: User?)user: User?BuilderSets the user interface
setViewProvider(provider: AgentforceViewProvider?)provider: AgentforceViewProvider?BuilderSets the view provider
setVoiceManaging(voiceManaging: AgentforceVoiceManaging?)voiceManaging: AgentforceVoiceManaging?BuilderSets the voice manager
setVoiceModeEnabled(enabled: Boolean)enabled: BooleanBuilderSets voice mode enabled state
MethodParametersReturn TypeDescription
builder(authCredentialProvider: AgentforceAuthCredentialProvider)authCredentialProvider: AgentforceAuthCredentialProviderAgentforceConfiguration.BuilderCreates a new builder instance
createFromEmployeeAgentConfiguration(authCredentialProvider: AgentforceAuthCredentialProvider, employeeAgentConfiguration: EmployeeAgentConfiguration, application: Application, baseFeatureFlags: AgentforceFeatureFlagSettings? = null)authCredentialProvider: AgentforceAuthCredentialProvider, employeeAgentConfiguration: EmployeeAgentConfiguration, application: Application, baseFeatureFlags: AgentforceFeatureFlagSettings? = nullAgentforceConfiguration.BuilderCreates builder from employee agent configuration
createFromServiceAgentConfiguration(authCredentialProvider: AgentforceAuthCredentialProvider? = null, serviceAgentConfiguration: ServiceAgentConfiguration, application: Application, baseFeatureFlags: AgentforceFeatureFlagSettings? = null)authCredentialProvider: AgentforceAuthCredentialProvider? = null, serviceAgentConfiguration: ServiceAgentConfiguration, application: Application, baseFeatureFlags: AgentforceFeatureFlagSettings? = nullAgentforceConfiguration.BuilderCreates builder from service agent configuration