- Overview
- Custom activities
- Migrating Activities to .NET 6
- Release Notes
- Building Workflow Analyzer Rules
- Building Activities Project Settings
- Creating Custom Wizards
- Prioritize Activities by Scope
- UiPath.Activities.Api.Base
- UiPath.Studio.Activities.Api
- UiPath.Studio.Activities.Api.Activities
- UiPath.Studio.Activities.Api.BusyService
- UiPath.Studio.Activities.Api.ExpressionEditor
- UiPath.Studio.Activities.Api.Expressions
- UiPath.Studio.Activities.Api.Licensing
- UiPath.Studio.Activities.Api.Mocking
- UiPath.Studio.Activities.Api.ObjectLibrary
- UiPath.Studio.Activities.Api.PackageBindings
- UiPath.Studio.Activities.Api.ProjectProperties
- UiPath.Studio.Activities.Api.ScopedActivities
- UiPath.Studio.Activities.Api.Settings
- UiPath.Studio.Activities.Api.Wizards
- UiPath.Studio.Activities.Api.Workflow
- UiPath.Studio.Api.Controls
- UiPath.Studio.Api.Telemetry
- UiPath.Studio.Api.Theme
- Robot JavaScript SDK
- Triggers SDK
Developer Guide
UiPath.Studio.Activities.Api.ObjectLibrary
In this section you can find more information on how to build activities using UiPath.Studio.Activities.Api.ObjectLibrary.
Model that is used by the Object Repository for interaction with IActivityFactoryRepository. The model is available for RegisterArgs.FactoryV3 and later.
Content handler interface.
Type |
Name |
Description |
---|---|---|
string |
ContentName |
Content name. |
string |
DisplayName |
Localized display name. |
string |
Description |
Localized description. |
string |
DisplayColor |
Content color (for the edit object buttons). |
byte[] |
Icon |
Content icon. |
string |
SelectionName |
Selection name corresponding to this content registered using IObjectSelectionDescription. |
Func<IContentEditArgs, Task<bool?>> |
OnEdit |
Edit handler. |
Func<IContentHighlightArgs, Task> |
OnHighlight |
Enables functionality to highlight the element in the target application. |
bool |
NeedsParentValidation |
If set to
true it specifies that this content needs a specific parent on add and move operations.
|
Designer operations API.
void RegisterContent(Action<IContentDescription> setter)
Registers a content handler for a specific content name
Parameter Type |
Parameter Name |
---|---|
Action<IContentDescription> |
setter |
void RegisterObjectSelection(Action<IObjectSelectionDescription>setter)
Registers a handler for indicating objects.
Parameter Type |
Parameter Name |
---|---|
Action<IObjectSelectionDescription> |
setter |
API for manipulating library objects.
Type |
Name |
Description |
---|---|---|
Content | ||
Objects | ||
bool |
DesignTimeEnforced |
If set to
true , the use of objects from the Object Repository is enforced.
|
Task<IObjectCreateCriteria> ShowCreateWindow(Action<IObjectCreateCriteria> criteriaSetter)
Parameter Type |
Parameter Name |
---|---|
Action<IObjectCreateCriteria> |
criteriaSetter |
void InvokeOnSourcesChanged(Action<ISourcesChangedArgs> handler)
Parameter Type |
Parameter Name |
---|---|
Action<ISourcesChangedArgs> |
handler |
void InvokeOnBeginDrag(Action<IObjectDragArgs> handler);
Parameter Type |
Parameter Name |
---|---|
Action<IObjectDragArgs> |
handler |
void InvokeOnEndDrag(Action handler)
Parameter Type |
Parameter Name |
---|---|
Action |
handler |
void NotifyObjectChanged(string sourceId, string objectReference)
Parameter Type |
Parameter Name |
---|---|
string |
sourceId |
string |
objectReference |
IDisposable BeginEdit(string sourceId, IReadOnlyList<string> objectReferences)
Parameter Type |
Parameter Name |
---|---|
string |
sourceId |
IReadOnlyList<string> |
objectReferences |
Task<IDisposable> BeginEditAsync(string sourceId, IReadOnlyList<string> objectReferences)
Parameter Type |
Parameter Name |
---|---|
string |
sourceId |
IReadOnlyList<string> |
objectReferences |
void Focus(string sourceId, string objectReference)
Parameter Type |
Parameter Name |
---|---|
string |
sourceId |
string |
objectReference |
Task<bool?> ShowReuseObjectDialog(string objectReference, bool addingToLibrary)
Parameter Type |
Parameter Name |
---|---|
string |
objectReference |
bool |
addingToLibrary |
>Task<bool?> ShowEditLinkedObjectDialog(string objectReference, bool isReindicating)
Parameter Type |
Parameter Name |
---|---|
string |
objectReference |
bool |
isReindicating |
Allows indicating on screen from an Object Repository object.
Type |
Name |
Description |
---|---|---|
string |
SelectionName |
Selection name. |
string |
DisplayName |
Localized display name for the Indicate button. |
string |
Description |
Localized description. |
string |
DisplayColor |
Content color for the Edit Object buttons. |
byte[] |
Icon |
Content icon. |
string |
RecordDisplayName |
Localized display name for the Record button. |
bool |
SupportsObjectRecorderHighlight |
Returns
true if element highlighting is supported. Requires Studio 2021.10 or later.
|
bool |
SupportsObjectRecorderCurrentElements |
Returns
true if elements are listed during recording. Requires Studio 2021.10 or later.
|
IReadOnlyList<string> |
SupportedObjectTypes |
Returns a list of objects that can be recorded. |
Func<ISelectionArgs, Task<bool?>> |
OnIndicate |
Allows the injection of a function that can be called when Indicate on screen was clicked. |
Func<object> |
GetObjectRecorderFactory |
Returns the function that allows the recording of objects from the Object Repository. |
Func<object> |
GetAutoCaptureElementsFactory |
Returns the function that allows triggering the Capture All feature from the Object Repository. Requires Studio 2021.10 or later. |
- ActivityCreationObjectData
- Properties
- IContentComputeArgs
- Properties
- IContentDescription
- Properties
- Methods
- IContentEditArgs
- Properties
- IContentHighlightArgs
- Properties
- IContentOperations
- Methods
- ILibraryService
- Properties
- IObjectCreateCriteria
- Properties
- IObjectDragArgs
- Properties
- IObjectOperations
- Methods
- IObjectRestriction
- Properties
- IObjectSelectionDescription
- Properties
- IObjectSource
- Properties
- ISelectionArgs
- Properties