Thank you!

We could not find anything for "" !

Browse By Category

Search results have nothing to do with ""?report

Lovense SDK for IOS

Lovense SDK Introduction

The Lovense iOS SDK is a set of application interfaces based on iOS 8.0 and above devices. You can use this set of SDK to develop applications for iOS mobile devices. By calling the Lovense SDK interface, you can easily control Lovense toys and build applications with rich functions and strong interactivity.

Process for using the Lovense SDK (Make sure Xcode is version 8.0 or above)

  1. Download and extract the Lovense SDK, Register as a Lovense Developer and get your Unicode token.
  2. Copy the following files to your project main directory.
  3. Add the required framework to the your project.
  4. Configure enviroment: TARGETS -> General -> Deployment Info -> Deployment Target -> setting 8.0 or above.
  5. Connect Lovense Toys.
    • Object-C
    • Swift

    import Lovense

    #import <Lovense/Lovense.h>

    Pass your token into Lovense framework

    [[Lovense  shared] setDeveloperToken:@"Your token"];

    Add a scan success notification

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(scanSuccessCallback:)
    name:kToyScanSuccessNotification object:nil];      //Scanning toy success notification
    -(void)scanSuccessCallback:(NSNotification *)noti 
    {
        NSDictionary * dict = [noti object];
        NSArray <LovenseToy*>* toys = [dict objectForKey:@"scanToyArray"];
    }

    Add a connect success notification

    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(connectSuccessCallback:) 
    name:kToyConnectSuccessNotification object:nil];     //Connected toy successfully notification
    -(void)connectSuccessCallback:(NSNotification *)noti 
    {
        NSDictionary * dict = [noti object];
        LovenseToy * toy = [dict objectForKey:@"toy"];
        NSLog(@"%@",toy);
    }

    Search for the toys over Bluetooth

    [[Lovense  shared] searchToys];

    Save the toys

    [[Lovense  shared] saveToys:toys];

    Retrieve the saved toys

    NSArray<LovenseToy*> * listToys = [[Lovense  shared] listToys];

    Connect the toy

    [[Lovense shared] connectToy:toyId];

    Disconnect the toy

    [[Lovense shared] disconnectToy:toyId];

    Send a command to the toy

    [[LovenseBluetoothManager shared] sendCommandWithToyId:toyId
    andCommandType:COMMAND_VIBRATE andParamDict:@{kSendCommandParamKey
    _VibrateLevel:@(20)}];

    Create YourProjectName-Bridging-Header.h

    Import Lovense

    #import <Lovense/Lovense.h>

    Pass your token into Lovense framework

    Lovense.shared().setDeveloperToken("token")

    Add a scan success notification

    NotificationCenter.default.addObserver(self, selector: #selector(scanSuccessCallback), 
    name: NSNotification.Name(rawValue: kToyScanSuccessNotification), object: nil) 
    //Scanning toy success notification 
    @objc func scanSuccessCallback(nofi : Notification)
    {
        let dict = nofi.object as? [String, LovenseToy]
        let scanToyArr = dict?["scanToyArray"]
    }

    Add a connect success notification

    NotificationCenter.default.addObserver(self, selector: #selector(connectSuccessCallback),
    name: NSNotification.Name(rawValue: kToyConnectSuccessNotification), object: nil) 
    //Connected toy successfully notification
    @objc func connectSuccessCallback(nofi : Notification)
    {
        let dict = nofi.object as? [LovenseToy]
        let toy = dict?["toy"]
    }

    Search the toys over Bluetooth

    Lovense.shared().searchToys()

    Save the toys

    Lovense.shared().save(toys)

    Retrieve the saved toys

    Lovense.shared().listToys()

    Connect the toy

    Lovense.shared().connectToy("toyId")

    Disconnect the toy

    Lovense.shared().disconnectToy("toyId")

    Send a command to the toy

    Lovense.shared().sendCommand(withToyId: "ToyId",
    andCommandType: COMMAND_VIBRATE,
    andParamDict: [kSendCommandParamKey_VibrateLevel:20])
    For API documentation, please Click Here

Select Coupon

Coupon
Extra Discount

Not available

[amount]

OFF

Applies to [toyname] only For orders over [amount] Valid till - [date] For orders over [amount] and new users only Collect Now Use Now Check Coupons Continue Shopping From [coupon activity name] campaign (CST) Expired Shop with Coupon Not available Buy with Coupon
Date of Birth Cancel Confirm Month Day Continue shopping Use CONGRATULATIONS! For compliance, please share your birthdate to receive our SMS updates. Save

Coupons not applicable to Christmas Gift Boxes,Lovense Webcam,Lovense Sex Machine, Lovense Mini Sex Machine,Gush2,Osci 3.

Lucky Buyer Discount

background
{0} OFF

For your order over {0}

Expires in :

Use
*Applies to any Lovense toy excluding single products with a discount over 50%.
Date of Birth Cancel Confirm Month Day Continue shopping Use CONGRATULATIONS! For compliance, please share your birthdate to receive our SMS updates. Save

Coupons not applicable to Christmas Gift Boxes,Lovense Webcam,Lovense Sex Machine, Lovense Mini Sex Machine,Gush2,Osci 3.

Lucky Buyer Discount

{0} OFF

For your order over {0}

Use
Thanks for subscribing!
New Year Coupons
Go to Store

For a better experience, we suggest you upgrade your browser or using other browser.

Loading...
Are you sure?

 

Login
     Forgot Password?
  Login

This order has been cancelled.

We will initiate a refund that should reach you within 7-10 working days.

OK

This order has already been shipped out. You can’t cancel it now. Please contact us for further assistance.

Security Tip

Due to a recent system security inspection, we have identified that your password is weak.

Please update your password to ensure the security of your account.

Cancel Change now

Please verify your email address

To ensure the security of your account, Please verify your email address.

Click "Verify" button to verify your email address.

Cancel Verify

Please check your inbox and click the link within 24 hours to complete your verification.

If you don’t see it, please check your spam folder or resend.

Cancel I've verified