ホスト構成 - iOS
ホストは HostConfig を使用して構成できます。これは JSON 文字列で生成できます
ACOParseResult *hostconfigParseResult = [ACOHostConfig FromJson:self.hostconfig];
既定の HostConfig をインスタンス化できます
ACOHostConfig *defaultConfig = [[ACHostConfig alloc] init];
ホスト構成を使用してカードをレンダリングする
レンダラーはアダプティブ カードとホスト構成を受け取ります。HostConfig には nil を指定できます。nil の場合は既定値が使用されます。
ACRRenderResult *renderResult;
renderResult = [ACRRenderer render:cardParseResult.card
config:hostconfigParseResult.config
widthConstraint:300.0];
カスタマイズ
アダプティブ カードレンダリングをカスタマイズするには、次の 3 つの方法があります。
- ホスト構成
- XIB
- カスタム要素のレンダリング