add_profile


Description:

[ Version ( since = "0.1.8" ) ]
public async bool add_profile (DeviceRelation relation, Profile profile, Cancellable? cancellable) throws Error

Adds a profile to a device.

Parameters:

this

a Device instance.

relation

a DeviceRelation, e.g. HARD

profile

a Profile instance

cancellable

a Cancellable, or null

callback

the function to run on completion

user_data

the data to pass to callback