When your device connects to a PC, the device will ask you which mode you want to use.
To transfer data between the device and computer, select “Transfer files” mode.
To transfer photos or files if MTP is not supported (PTP), select “Transfer photos (PTP)”.
To disable all data and file transfer connections with the computer and put device in charging only mode, select “Charge this device”.