Agentforce Mobile SDK Reference Overview

Technical reference for the Agentforce Mobile SDK APIs and components across iOS and Android platforms.

Platform Support 

PlatformUI FrameworkMin VersionDistribution
iOSSwiftUIiOS 17+CocoaPods
AndroidJetpack ComposeAPI 29+AAR

Core Components 

The Agentforce Mobile SDK includes the following core components across both platforms:

Primary Classes 

ClassiOSAndroidDescription
AgentforceClientSDK entry point and orchestrator
AgentforceConversationConversation session management

UI Components 

iOS Components 

ComponentDescription
AgentforceChatViewFull conversational interface
AgentforceCardCompact conversation summary
AgentforceLauncherFloating launcher interface
ConversationUIContainerContainer view for embedding conversation UI

Android Components 

ComponentDescription
AgentforceComponentBase UI component system
ChatResponseButtonInteractive response elements
RecordSelectorSalesforce record selection

Services & Protocols 

iOS Protocols 

ProtocolDescription
AgentConversationCore conversation interface
AgentforceDataProvidingData access abstraction

Android Services 

ServiceDescription
AgentforceAPINetwork service layer
AgentforceServiceBackend integration interface
BotsAPIConversation API client

Enumerations 

EnumerationiOSAndroidDescription
AgentforceConversationStateConversation lifecycle states
AgentforceAccessModePermission and context modes

Error Handling 

ComponentiOSAndroidDescription
AgentforceSDKErrorSDK error taxonomy
AgentforceDataProviderErrorsData provider errors (iOS only)

Platform-Specific Development 

iOS Development 

Android Development 

Related Documentation