1 package net.osdn.gokigen.pkremote.camera.vendor.ptpip.wrapper.connection;
3 import android.app.Activity;
5 import androidx.annotation.NonNull;
7 import net.osdn.gokigen.pkremote.camera.vendor.nikon.INikonInterfaceProvider;
8 import net.osdn.gokigen.pkremote.camera.vendor.ptpip.wrapper.command.IPtpIpCommunication;
11 class NikonCameraDisconnectSequence implements Runnable
13 private final String TAG = this.toString();
14 private final Activity activity;
15 private final IPtpIpCommunication command;
16 private final IPtpIpCommunication async;
17 private final IPtpIpCommunication liveview;
19 NikonCameraDisconnectSequence(Activity activity, @NonNull INikonInterfaceProvider interfaceProvider)
21 this.activity = activity;
22 this.command = interfaceProvider.getCommandCommunication();
23 this.async = interfaceProvider.getAsyncEventCommunication();
24 this.liveview = interfaceProvider.getLiveviewCommunication();
32 liveview.disconnect();