---
title: MSStickerBrowserViewDataSource
framework: messages
role: symbol
role_heading: Protocol
path: messages/msstickerbrowserviewdatasource
---

# MSStickerBrowserViewDataSource

The protocol for dynamically providing stickers to a browser view.

## Declaration

```swift
protocol MSStickerBrowserViewDataSource : NSObjectProtocol
```

## Overview

Overview To load its stickers, the MSStickerBrowserView class performs the following steps: The browser calls the data source’s numberOfStickers(in:) method to get the number of stickers. The browser repeatedly calls the data source’s stickerBrowserView(_:stickerAt:) method to load the individual stickers. Initially, the browser requests only enough stickers to fill the screen. The browser requests additional stickers as the user scrolls and new stickers become visible. Both methods are required. If the sticker collection changes at runtime, call the MSStickerBrowserView class’s reloadData() method to reload the stickers.

## Topics

### Providing Stickers

- [numberOfStickers(in:)](messages/msstickerbrowserviewdatasource/numberofstickers(in:).md)
- [stickerBrowserView(_:stickerAt:)](messages/msstickerbrowserviewdatasource/stickerbrowserview(_:stickerat:).md)

## Relationships

### Inherits From

- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

### Conforming Types

- [MSStickerBrowserViewController](messages/msstickerbrowserviewcontroller.md)

## See Also

### Managing the Sticker Collection Contents

- [dataSource](messages/msstickerbrowserview/datasource.md)
- [reloadData()](messages/msstickerbrowserview/reloaddata().md)
