Get the state of a specified button resource.
The resource ID of the button resource to fetch data for.