You mean that you want to programmatically change the appID and displayname. Those are values like any other so you would have to add textfields to capture those values from the user and then have them read in that class so that they could be inserted into those calls.