1 package net.osdn.gokigen.pkremote.camera.vendor.ptpip.wrapper.connection;
3 import android.app.Activity;
4 import android.util.Log;
6 import androidx.annotation.NonNull;
8 import net.osdn.gokigen.pkremote.camera.vendor.ptpip.IPtpIpInterfaceProvider;
9 import net.osdn.gokigen.pkremote.camera.vendor.ptpip.wrapper.command.IPtpIpCommunication;
12 class CanonCameraDisconnectSequence implements Runnable
14 private final String TAG = this.toString();
15 private final Activity activity;
16 private final IPtpIpCommunication command;
17 private final IPtpIpCommunication async;
18 private final IPtpIpCommunication liveview;
20 CanonCameraDisconnectSequence(Activity activity, @NonNull IPtpIpInterfaceProvider interfaceProvider)
22 this.activity = activity;
23 this.command = interfaceProvider.getCommandCommunication();
24 this.async = interfaceProvider.getAsyncEventCommunication();
25 this.liveview = interfaceProvider.getLiveviewCommunication();
33 Log.v(TAG, " disconnect");
34 liveview.disconnect();