User Activity

How we can change the parameters dyanamically in the lorawan stack from program ? I got some information like ,we can use LmHandler APIs to set the parameters .... But How we can use and exactly where we can call these functions ?Thanks in advance