func (c *BackgroundService) StopObservingWithParams(ctx context.Context, v *BackgroundServiceStopObservingParams) (*gcdmessage.ChromeResponse, error) {
	return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "BackgroundService.stopObserving", Params: v})
}
StopObservingWithParams - Disables event updates for the service.
package gcdapi
import (
	"context"
	"github.com/wirepair/gcd/v2/gcdmessage"
)
type BackgroundServiceEventMetadata struct {
	Key   string `json:"key"`    
	Value string `json:"value"`  
}
type BackgroundServiceBackgroundServiceEvent struct {
	Timestamp                   float64                           `json:"timestamp"`                    
	Origin                      string                            `json:"origin"`                       
	ServiceWorkerRegistrationId string                            `json:"serviceWorkerRegistrationId"`  
	Service                     string                            `json:"service"`                      
	EventName                   string                            `json:"eventName"`                    
	InstanceId                  string                            `json:"instanceId"`                   
	EventMetadata               []*BackgroundServiceEventMetadata `json:"eventMetadata"`                
}
type BackgroundServiceRecordingStateChangedEvent struct {
	Method string `json:"method"`
	Params struct {
		IsRecording bool   `json:"isRecording"`  
		Service     string `json:"service"`      
	} `json:"Params,omitempty"`
}
type BackgroundServiceBackgroundServiceEventReceivedEvent struct {
	Method string `json:"method"`
	Params struct {
		BackgroundServiceEvent *BackgroundServiceBackgroundServiceEvent `json:"backgroundServiceEvent"`  
	} `json:"Params,omitempty"`
}
type BackgroundService struct {
	target gcdmessage.ChromeTargeter
}
func NewBackgroundService(target gcdmessage.ChromeTargeter) *BackgroundService {
	c := &BackgroundService{target: target}
	return c
}
type BackgroundServiceStartObservingParams struct {
	Service string `json:"service"`
}
func (c *BackgroundService) StartObservingWithParams(ctx context.Context, v *BackgroundServiceStartObservingParams) (*gcdmessage.ChromeResponse, error) {
	return c.target.SendDefaultRequest(ctx, &gcdmessage.ParamRequest{Id: c.target.GetId(), Method: "BackgroundService.startObserving", Params: v})
}
func (c *BackgroundService) StartObserving(ctx context.Context, service string) (*gcdmessage.ChromeResponse, error) {
	var v BackgroundServiceStartObservingParams
	v.Service = service
	return c.StartObservingWithParams(ctx, &v)
}
type BackgroundServiceStopObservingParams struct {
	Service string `json:"service"`
}