Understand the Matrix SDK entry points and service hierarchy
developThe Matrix Android SDK is structured around a hierarchical service model. To interact with the Matrix network, you follow this flow:
- Initialize the SDK: Create and manage a
Matrixobject. This is the primary entry point. - Authentication: Use the
Matrixobject to access theAuthenticationService. This service allows you to:- Retrieve an existing
Session. - Create a new
Sessionusing aLoginWizardor aRegistrationWizard.
- Retrieve an existing
- Session Management: Once you have a
Sessionobject, you can access various domain-specific services, such as theRoomService. - Room Interaction: Use the
RoomServiceto list rooms, create new rooms, or retrieve a specificRoomobject. - Room Features: From a
Roomobject, you can perform actions like retrieving aTimelineor sending messages.