@swrve/smarttv-sdk
Version:
Swrve marketing engagement platform SDK for SmartTV OTT devices
11 lines (10 loc) • 704 B
TypeScript
import { SwrveResource } from "./SwrveResource";
import { IUserResource } from "../Campaigns/ISwrveCampaign";
export declare class ResourceManager {
readonly getResources: () => IUserResource[] | null;
readonly getResource: (resourceId: string) => SwrveResource;
constructor(getResources: typeof ResourceManager.prototype.getResources, getResource: typeof ResourceManager.prototype.getResource);
getAttributeAsString(resourceId: string, attributeId: string, defaultValue: string): string;
getAttributeAsNumber(resourceId: string, attributeId: string, defaultValue: number): number;
getAttributeAsBoolean(resourceId: string, attributeId: string, defaultValue: boolean): boolean;
}