Agentforce Mobile SDK Reference Overview

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

Platform Support

Platform UI Framework Min Version Distribution
iOS SwiftUI iOS 17+ CocoaPods
Android Jetpack Compose API 29+ AAR

Core Components

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

Primary Classes

Class iOS Android Description
AgentforceClient ✅ ✅ SDK entry point and orchestrator
AgentforceConversation ✅ ✅ Conversation session management

UI Components

iOS Components

Component Description
AgentforceChatView Full conversational interface
AgentforceCard Compact conversation summary
AgentforceLauncher Floating launcher interface
ConversationUIContainer Container view for embedding conversation UI

Android Components

Component Description
AgentforceComponent Base UI component system
ChatResponseButton Interactive response elements
RecordSelector Salesforce record selection

Services & Protocols

iOS Protocols

Protocol Description
AgentConversation Core conversation interface
AgentforceDataProviding Data access abstraction

Android Services

Service Description
AgentforceAPI Network service layer
AgentforceService Backend integration interface
BotsAPI Conversation API client

Enumerations

Enumeration iOS Android Description
AgentforceConversationState ✅ ✅ Conversation lifecycle states
AgentforceAccessMode ✅ ✅ Permission and context modes

Error Handling

Component iOS Android Description
AgentforceSDKError ✅ ✅ SDK error taxonomy
AgentforceDataProviderErrors ✅ ❌ Data provider errors (iOS only)

Platform-Specific Development

iOS Development

Android Development

Related Documentation