# Initialize

class `DcentManager` provides functions for using D'CENT Biometric Wallet.&#x20;

First, you must initialize DcentManager. D'CENT Biometric will be connected with your iOS application using BLE. Your application implements DcentBLEManagerDelegate protocol for receiving BLE connect/disconnect event.

```swift
extension DeviceSearchViewController:DcentBLEManagerDelegate {

    func dcentBleManager(didDiscover device: BleDeviceInfo) {
        // TODO: add your code
    }

    func dcentBleManager(didConnect device: BleDeviceInfo) {
        // TODO: add your code
    }

    func dcentBleManager(didDisconnect device: BleDeviceInfo?) {
        // TODO: add your code
    }

    func dcentBleManager(didFailToConnect device: BleDeviceInfo?) {
        // TODO: add your code
    }

    func dcentBleManager(didUpdate status: DcentBleManagerState) {
        // TODO: add your code
    }
}
```

Call `func delegate(delegate:DcentBLEManagerDelegate)` function for register delegate implements DcentBLEManagerDelegate protocol.

```swift
  let dcentMgr:DcentManager = DcentManager()
  dcentMgr.delegate = self
```

DcentManager provides(for ble connection):

* `public func searchDeviceStart()`
* `public func searchDeviceStop()`
* `public func getDeviceList() -> BleDeviceInfo`
* `public func connectDevice(to device: BleDeviceInfo)`
* `public func disconnectDevice(from device: BleDeviceInfo)`
* `public func connectedDevice() -> BleDeviceInfo?`

ios app developers can connect DCENT dongle through bluetooth using these functions. ( Please refer to the sample application to learn more details )


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev-docs.dcentwallet.com/dcent-biometric-wallet-for-mobile/dcent-biometric-sdk-ios/initialize.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
