Menu
Amazon AppStream
Developer Guide

This documentation is for an older version of Amazon AppStream. For information about the latest version, see the Amazon AppStream 2.0 Developer Guide.

Terminating Your Client

The client ends the session by calling the XStxClientLibraryRecycle function and then free the resources.

The following excerpt from the example client in the Amazon AppStream SDK illustrates this step. The excerpt is from the recycleXStxClient and dealloc functions of AppStreamSampleClientViewController.m.

Copy
-(void) recycleXStxClient { XStxClientLibraryRecycle(mClientLibraryHandle); } // clean up -(void) dealloc { [[NSNotificationCenter defaultCenter] removeObserver:self]; [self recycleXStxClient]; }