add_profile_sync
Description:
[ Version ( since = "0.1.3" ) ]
public bool add_profile_sync (DeviceRelation relation, Profile profile, Cancellable? cancellable = null) throws Error
public bool add_profile_sync (DeviceRelation relation, Profile profile, Cancellable? cancellable = null) throws Error
Adds a profile to a device.
WARNING: This function is synchronous, and may block. Do not use it in GUI applications.
Parameters:
this |
a Device instance. |
relation |
a DeviceRelation, e.g. HARD |
profile |
a Profile instance |
cancellable |
a Cancellable or null |
Returns:
true for success, else false. |