Search in sources :

Example 1 with SyncthingServiceBinder

use of com.nutomic.syncthingandroid.service.SyncthingServiceBinder in project syncthing-android by syncthing.

the class SyncthingActivity method onServiceConnected.

@Override
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
    SyncthingServiceBinder syncthingServiceBinder = (SyncthingServiceBinder) iBinder;
    mSyncthingService = syncthingServiceBinder.getService();
    Stream.of(mServiceConnectedListeners).forEach(OnServiceConnectedListener::onServiceConnected);
    mServiceConnectedListeners.clear();
}
Also used : SyncthingServiceBinder(com.nutomic.syncthingandroid.service.SyncthingServiceBinder)

Example 2 with SyncthingServiceBinder

use of com.nutomic.syncthingandroid.service.SyncthingServiceBinder in project syncthing-android by syncthing.

the class MainActivity method onServiceConnected.

@Override
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
    super.onServiceConnected(componentName, iBinder);
    SyncthingServiceBinder syncthingServiceBinder = (SyncthingServiceBinder) iBinder;
    SyncthingService syncthingService = syncthingServiceBinder.getService();
    syncthingService.registerOnServiceStateChangeListener(this);
    syncthingService.registerOnServiceStateChangeListener(mFolderListFragment);
    syncthingService.registerOnServiceStateChangeListener(mDeviceListFragment);
}
Also used : SyncthingService(com.nutomic.syncthingandroid.service.SyncthingService) SyncthingServiceBinder(com.nutomic.syncthingandroid.service.SyncthingServiceBinder)

Example 3 with SyncthingServiceBinder

use of com.nutomic.syncthingandroid.service.SyncthingServiceBinder in project syncthing-android by syncthing.

the class FolderPickerActivity method onServiceConnected.

@Override
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
    super.onServiceConnected(componentName, iBinder);
    SyncthingServiceBinder syncthingServiceBinder = (SyncthingServiceBinder) iBinder;
    syncthingServiceBinder.getService().registerOnServiceStateChangeListener(this);
}
Also used : SyncthingServiceBinder(com.nutomic.syncthingandroid.service.SyncthingServiceBinder)

Example 4 with SyncthingServiceBinder

use of com.nutomic.syncthingandroid.service.SyncthingServiceBinder in project syncthing-android by syncthing.

the class WebGuiActivity method onServiceConnected.

@Override
public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
    super.onServiceConnected(componentName, iBinder);
    SyncthingServiceBinder syncthingServiceBinder = (SyncthingServiceBinder) iBinder;
    syncthingServiceBinder.getService().registerOnServiceStateChangeListener(this);
}
Also used : SyncthingServiceBinder(com.nutomic.syncthingandroid.service.SyncthingServiceBinder)

Aggregations

SyncthingServiceBinder (com.nutomic.syncthingandroid.service.SyncthingServiceBinder)4 SyncthingService (com.nutomic.syncthingandroid.service.SyncthingService)1