Android Architecture Integration

Technical reference for Android platform integration patterns and requirements.

System Requirements

Requirement Version
Android API 29+ (Android 10)
Kotlin 1.9.22+
Android Studio Meerkat+
Compose BOM 2023.10.01+

Architecture Patterns

Pattern Description
Service-Oriented Architecture Clean separation of concerns with network and data layers
Coroutines Support Async operations with proper lifecycle management
Jetpack Compose UI Modern declarative UI components with Material Design
Material Design Integration Consistent theming and styling with Android design system

Core Integration Points

Essential API signatures and patterns for Android integration.

API Initialization

AgentforceAPI(
    network: NetworkProvider,
    credentialProvider: CredentialProvider
)

Conversation Creation

AgentforceConversation(
    agentId: String,
    configuration: AgentforceConfiguration
)

Compose UI Integration

@Composable
fun AgentforceChatView(
    conversation: AgentforceConversation,
    modifier: Modifier = Modifier
)

Component Reference

Complete reference of Android components and services.

UI Components

Component Type Description
AgentforceComponent Composable Base component system for UI rendering
ChatResponseButton Composable Interactive response buttons
RecordSelector Composable Salesforce record selection interface

Core Services

Service Purpose
AgentforceAPI Network service layer for API communication
AgentforceService Backend integration and business logic
BotsAPI Conversation API client for agent interactions

Related Documentation