Fetch sections from blocks
Setting the specific block_id, it is possible to obtain the corresponding section’s data.
If you want, you can include whether or not you want to filter the elements of the section by adding an array of filters.
The process to reach the result is the same as the blocks’ example:
Create, initialize and pause the BroadcastReceiver (using “forSections” method).
Call the task.
Fetch the sections from the response of onApiResult.
Your code should be like this:
If you specify more filters of the same type inside the array, only the last one of those type will be considered.
Last updated